Nikolay Sivov : user32: Added stubs for ShutdownBlockReasonCreate/ ShutdownBlockReasonDestroy.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 29 08:12:09 CDT 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Jun 26 21:35:28 2015 +0300

user32: Added stubs for ShutdownBlockReasonCreate/ShutdownBlockReasonDestroy.

---

 dlls/user32/user32.spec |  2 ++
 dlls/user32/user_main.c | 20 ++++++++++++++++++++
 include/winuser.h       |  2 ++
 3 files changed, 24 insertions(+)

diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index a8bbe83..5cc0f55 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -697,6 +697,8 @@
 @ stub ShowStartGlass
 @ stdcall ShowWindow(long long)
 @ stdcall ShowWindowAsync(long long)
+@ stdcall ShutdownBlockReasonCreate(long wstr)
+@ stdcall ShutdownBlockReasonDestroy(long)
 # @ stub SoftModalMessageBox
 @ stdcall SubtractRect(ptr ptr ptr)
 @ stdcall SwapMouseButton(long)
diff --git a/dlls/user32/user_main.c b/dlls/user32/user_main.c
index 12764e6..718abe0 100644
--- a/dlls/user32/user_main.c
+++ b/dlls/user32/user_main.c
@@ -409,3 +409,23 @@ int WINAPI RegisterServicesProcess(DWORD ServicesProcessId)
     FIXME("(0x%x): stub\n", ServicesProcessId);
     return 0;
 }
+
+/***********************************************************************
+ *		ShutdownBlockReasonCreate (USER32.@)
+ */
+BOOL WINAPI ShutdownBlockReasonCreate(HWND hwnd, LPCWSTR reason)
+{
+    FIXME("(%p, %s): stub\n", hwnd, debugstr_w(reason));
+    SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
+    return FALSE;
+}
+
+/***********************************************************************
+ *		ShutdownBlockReasonDestroy (USER32.@)
+ */
+BOOL WINAPI ShutdownBlockReasonDestroy(HWND hwnd)
+{
+    FIXME("(%p): stub\n", hwnd);
+    SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
+    return FALSE;
+}
diff --git a/include/winuser.h b/include/winuser.h
index e9804a9..118aa73 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -3992,6 +3992,8 @@ WINUSERAPI BOOL        WINAPI ShowScrollBar(HWND,INT,BOOL);
 WINUSERAPI BOOL        WINAPI ShowOwnedPopups(HWND,BOOL);
 WINUSERAPI BOOL        WINAPI ShowWindow(HWND,INT);
 WINUSERAPI BOOL        WINAPI ShowWindowAsync(HWND,INT);
+WINUSERAPI BOOL        WINAPI ShutdownBlockReasonCreate(HWND,LPCWSTR);
+WINUSERAPI BOOL        WINAPI ShutdownBlockReasonDestroy(HWND);
 WINUSERAPI BOOL        WINAPI SubtractRect(LPRECT,const RECT*,const RECT*);
 WINUSERAPI BOOL        WINAPI SwapMouseButton(BOOL);
 WINUSERAPI BOOL        WINAPI SwitchDesktop(HDESK);




More information about the wine-cvs mailing list