[PATCH] user32: Add RegisterSuspendResumeNotification() stub.
Nikolay Sivov
nsivov at codeweavers.com
Wed Mar 30 03:16:16 CDT 2022
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
The Legend of Heroes: Zero no Kiseki Kai game crashes on it.
dlls/user32/misc.c | 9 +++++++++
dlls/user32/user32.spec | 1 +
include/winuser.h | 1 +
3 files changed, 11 insertions(+)
diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c
index 25d0b676667..2e9ea897502 100644
--- a/dlls/user32/misc.c
+++ b/dlls/user32/misc.c
@@ -443,6 +443,15 @@ BOOL WINAPI UnregisterPowerSettingNotification(HPOWERNOTIFY handle)
return TRUE;
}
+/**********************************************************************
+ * RegisterSuspendResumeNotification (USER32.@)
+ */
+HPOWERNOTIFY WINAPI RegisterSuspendResumeNotification(HANDLE recipient, DWORD flags)
+{
+ FIXME("%p, %#x: stub.\n", recipient, flags);
+ return (HPOWERNOTIFY)0xdeadbeef;
+}
+
/*****************************************************************************
* GetGestureConfig (USER32.@)
*/
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index aae124ebdcc..53a1cefc451 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -608,6 +608,7 @@
@ stdcall RegisterRawInputDevices(ptr long long)
@ stdcall RegisterServicesProcess(long)
@ stdcall RegisterShellHookWindow (long)
+@ stdcall RegisterSuspendResumeNotification(long long)
@ stdcall RegisterSystemThread(long long)
@ stdcall RegisterTasklist (long)
@ stdcall RegisterTouchHitTestingWindow(long long)
diff --git a/include/winuser.h b/include/winuser.h
index 898c9034e33..9a28d1436b9 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -4128,6 +4128,7 @@ WINUSERAPI BOOL WINAPI RegisterPointerDeviceNotifications(HWND,BOOL);
WINUSERAPI HPOWERNOTIFY WINAPI RegisterPowerSettingNotification(HANDLE,LPCGUID,DWORD);
WINUSERAPI BOOL WINAPI RegisterRawInputDevices(PRAWINPUTDEVICE,UINT,UINT);
WINUSERAPI BOOL WINAPI RegisterShellHookWindow(HWND);
+WINUSERAPI HPOWERNOTIFY WINAPI RegisterSuspendResumeNotification(HANDLE,DWORD);
WINUSERAPI BOOL WINAPI RegisterTouchWindow(HWND,ULONG);
WINUSERAPI UINT WINAPI RegisterWindowMessageA(LPCSTR);
WINUSERAPI UINT WINAPI RegisterWindowMessageW(LPCWSTR);
--
2.35.1
More information about the wine-devel
mailing list