Nikolay Sivov : user32: Added RegisterPowerSettingNotification() stub.

Alexandre Julliard julliard at winehq.org
Mon Apr 7 13:20:06 CDT 2014


Module: wine
Branch: master
Commit: bd262c606a5dca79aa2ec0d863bad04e4b776087
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bd262c606a5dca79aa2ec0d863bad04e4b776087

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Apr  7 09:21:19 2014 +0400

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 41b2b16..34e1d81 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 fe3906f..0b5754e 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 0f3d0b1..8cda284 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);




More information about the wine-cvs mailing list