shcore: Implement Get/SetProcessDpiAwareness().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-04-11 15:46:06 +02:00
parent da2551f874
commit 7a7dd5005c
2 changed files with 8 additions and 5 deletions

View File

@ -46,15 +46,14 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
HRESULT WINAPI GetProcessDpiAwareness(HANDLE process, PROCESS_DPI_AWARENESS *value)
{
FIXME("(%p, %p): stub\n", process, value);
if (value) *value = PROCESS_DPI_UNAWARE;
return S_OK;
if (GetProcessDpiAwarenessInternal( process, (DPI_AWARENESS *)value )) return S_OK;
return HRESULT_FROM_WIN32( GetLastError() );
}
HRESULT WINAPI SetProcessDpiAwareness(PROCESS_DPI_AWARENESS value)
{
FIXME("(%u): stub\n", value);
return E_NOTIMPL;
if (SetProcessDpiAwarenessInternal( value )) return S_OK;
return HRESULT_FROM_WIN32( GetLastError() );
}
HRESULT WINAPI GetDpiForMonitor(HMONITOR monitor, MONITOR_DPI_TYPE type, UINT *x, UINT *y)

View File

@ -34,4 +34,8 @@ typedef enum PROCESS_DPI_AWARENESS
PROCESS_PER_MONITOR_DPI_AWARE
} PROCESS_DPI_AWARENESS;
HRESULT WINAPI GetDpiForMonitor(HMONITOR,MONITOR_DPI_TYPE,UINT*,UINT*);
HRESULT WINAPI GetProcessDpiAwareness(HANDLE,PROCESS_DPI_AWARENESS*);
HRESULT WINAPI SetProcessDpiAwareness(PROCESS_DPI_AWARENESS);
#endif /* __WINE_SHELLSCALINGAPI_H */