advapi32: Add InitiateShutdown{A,W} stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47131
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Louis Lenders 2019-05-06 19:46:29 +02:00 committed by Alexandre Julliard
parent 71397e6ebf
commit 8c61f824f9
3 changed files with 23 additions and 2 deletions

View File

@ -268,6 +268,24 @@ BOOL WINAPI InitiateSystemShutdownW( LPWSTR lpMachineName, LPWSTR lpMessage, DWO
SHTDN_REASON_MAJOR_LEGACY_API ); SHTDN_REASON_MAJOR_LEGACY_API );
} }
/***********************************************************************
* InitiateShutdownA [ADVAPI32.@]
*/
DWORD WINAPI InitiateShutdownA(char *name, char *message, DWORD seconds, DWORD flags, DWORD reason)
{
FIXME("%s, %s, %d, %d, %d stub\n", debugstr_a(name), debugstr_a(message), seconds, flags, reason);
return ERROR_CALL_NOT_IMPLEMENTED;
}
/***********************************************************************
* InitiateShutdownW [ADVAPI32.@]
*/
DWORD WINAPI InitiateShutdownW(WCHAR *name, WCHAR *message, DWORD seconds, DWORD flags, DWORD reason)
{
FIXME("%s, %s, %d, %d, %d stub\n", debugstr_w(name), debugstr_w(message), seconds, flags, reason);
return ERROR_CALL_NOT_IMPLEMENTED;
}
BOOL WINAPI LogonUserA( LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword, BOOL WINAPI LogonUserA( LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword,
DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken ) DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken )
{ {

View File

@ -405,8 +405,8 @@
@ stdcall InitializeAcl(ptr long long) @ stdcall InitializeAcl(ptr long long)
@ stdcall InitializeSecurityDescriptor(ptr long) @ stdcall InitializeSecurityDescriptor(ptr long)
@ stdcall InitializeSid(ptr ptr long) @ stdcall InitializeSid(ptr ptr long)
# @ stub InitiateShutdownA @ stdcall InitiateShutdownA(str str long long long)
# @ stub InitiateShutdownW @ stdcall InitiateShutdownW(wstr wstr long long long)
@ stdcall InitiateSystemShutdownA(str str long long long) @ stdcall InitiateSystemShutdownA(str str long long long)
@ stdcall InitiateSystemShutdownExA(str str long long long long) @ stdcall InitiateSystemShutdownExA(str str long long long long)
@ stdcall InitiateSystemShutdownExW(wstr wstr long long long long) @ stdcall InitiateSystemShutdownExW(wstr wstr long long long long)

View File

@ -91,6 +91,9 @@ typedef LONG LSTATUS;
WINADVAPI BOOL WINAPI AbortSystemShutdownA(LPSTR); WINADVAPI BOOL WINAPI AbortSystemShutdownA(LPSTR);
WINADVAPI BOOL WINAPI AbortSystemShutdownW(LPWSTR); WINADVAPI BOOL WINAPI AbortSystemShutdownW(LPWSTR);
#define AbortSystemShutdown WINELIB_NAME_AW(AbortSystemShutdown) #define AbortSystemShutdown WINELIB_NAME_AW(AbortSystemShutdown)
WINADVAPI DWORD WINAPI InitiateShutdownA(char*,char*,DWORD,DWORD,DWORD);
WINADVAPI DWORD WINAPI InitiateShutdownW(WCHAR*,WCHAR*,DWORD,DWORD,DWORD);
#define InitiateShutdown WINELIB_NAME_AW(InitiateShutdown)
WINADVAPI BOOL WINAPI InitiateSystemShutdownA(LPSTR,LPSTR,DWORD,BOOL,BOOL); WINADVAPI BOOL WINAPI InitiateSystemShutdownA(LPSTR,LPSTR,DWORD,BOOL,BOOL);
WINADVAPI BOOL WINAPI InitiateSystemShutdownW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL); WINADVAPI BOOL WINAPI InitiateSystemShutdownW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL);
#define InitiateSystemShutdown WINELIB_NAME_AW(InitiateSystemShutdown) #define InitiateSystemShutdown WINELIB_NAME_AW(InitiateSystemShutdown)