user32: Added stubs for ShutdownBlockReasonCreate/ShutdownBlockReasonDestroy
Nikolay Sivov
nsivov at codeweavers.com
Fri Jun 26 13:39:24 CDT 2015
---
-------------- next part --------------
From b2de05bcc4b0a1ad181bf02aa1b01671b55b8022 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri, 26 Jun 2015 21:35:28 +0300
Subject: [PATCH] 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..f2d75a4 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;
+}
\ No newline at end of file
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);
--
2.1.4
More information about the wine-patches
mailing list