From bd262c606a5dca79aa2ec0d863bad04e4b776087 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 7 Apr 2014 09:21:19 +0400 Subject: [PATCH] user32: Added RegisterPowerSettingNotification() stub. --- dlls/user32/misc.c | 9 +++++++++ dlls/user32/user32.spec | 1 + include/winuser.h | 2 ++ 3 files changed, 12 insertions(+) diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c index 41b2b168ecb..34e1d81ebfe 100644 --- a/dlls/user32/misc.c +++ b/dlls/user32/misc.c @@ -667,3 +667,12 @@ BOOL WINAPI UserHandleGrantAccess(HANDLE handle, HANDLE job, BOOL grant) FIXME("(%p,%p,%d): stub\n", handle, job, grant); return TRUE; } + +/********************************************************************** + * RegisterPowerSettingNotification [USER32.@] + */ +HPOWERNOTIFY WINAPI RegisterPowerSettingNotification(HANDLE recipient, const GUID *guid, DWORD flags) +{ + FIXME("(%p,%s,%x): stub\n", recipient, debugstr_guid(guid), flags); + return NULL; +} diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index fe3906f86f9..0b5754e50aa 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -567,6 +567,7 @@ @ stdcall RegisterLogonProcess(long long) # @ stub RegisterMessagePumpHook @ stub RegisterNetworkCapabilities +@ stdcall RegisterPowerSettingNotification(long ptr long) @ stdcall RegisterRawInputDevices(ptr long long) @ stdcall RegisterServicesProcess(long) @ stdcall RegisterShellHookWindow (long) diff --git a/include/winuser.h b/include/winuser.h index 0f3d0b1e1c2..8cda284c344 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -91,6 +91,7 @@ DECL_WINELIB_TYPE_AW(WINSTAENUMPROC) typedef HANDLE HDWP; +typedef void* HPOWERNOTIFY; #define UOI_FLAGS 1 #define UOI_NAME 2 @@ -3853,6 +3854,7 @@ WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD); WINUSERAPI HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD); #define RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification) WINUSERAPI BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT); +WINUSERAPI HPOWERNOTIFY WINAPI RegisterPowerSettingNotification(HANDLE,LPCGUID,DWORD); WINUSERAPI BOOL WINAPI RegisterRawInputDevices(PRAWINPUTDEVICE,UINT,UINT); WINUSERAPI UINT WINAPI RegisterWindowMessageA(LPCSTR); WINUSERAPI UINT WINAPI RegisterWindowMessageW(LPCWSTR);