advapi32: Parital Implement InitiateSystemShutdown(Ex) (try 2)

Alexandre Julliard julliard at winehq.org
Tue Jan 4 07:49:08 CST 2011


André Hentschel <nerv at dawncrow.de> writes:

> @@ -232,6 +233,10 @@ BOOL WINAPI InitiateSystemShutdownExA( LPSTR lpMachineName, LPSTR lpMessage,
>           DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown,
>           DWORD dwReason)
>  {
> +     if (!lpMachineName && !lpMessage && !dwTimeout)
> +        ExitWindowsEx(bRebootAfterShutdown ? EWX_REBOOT : 0 |
> +                      bForceAppsClosed ? EWX_FORCE : 0,
> +                      dwReason);
>       FIXME("%s %s %d %d %d %d\n", debugstr_a(lpMachineName),
>              debugstr_a(lpMessage), dwTimeout, bForceAppsClosed,
>              bRebootAfterShutdown, dwReason);

I don't think you want to call user32 functions here.

-- 
Alexandre Julliard
julliard at winehq.org




More information about the wine-devel mailing list