Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (advapi) |
|
BOOL WINAPI | AbortSystemShutdownA (LPCSTR lpMachineName) |
|
BOOL WINAPI | AbortSystemShutdownW (LPCWSTR lpMachineName) |
|
BOOL WINAPI | InitiateSystemShutdownA (LPSTR lpMachineName, LPSTR lpMessage, DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown) |
|
BOOL WINAPI | InitiateSystemShutdownW (LPWSTR lpMachineName, LPWSTR lpMessage, DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown) |
|
BOOL WINAPI | InitiateSystemShutdownExA (LPSTR lpMachineName, LPSTR lpMessage, DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown, DWORD dwReason) |
|
BOOL WINAPI | InitiateSystemShutdownExW (LPWSTR lpMachineName, LPWSTR lpMessage, DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown, DWORD dwReason) |
|
DWORD WINAPI | InitiateShutdownW (LPWSTR lpMachineName, LPWSTR lpMessage, DWORD dwGracePeriod, DWORD dwShutdownFlags, DWORD dwReason) |
|
DWORD WINAPI | InitiateShutdownA (LPSTR lpMachineName, LPSTR lpMessage, DWORD dwGracePeriod, DWORD dwShutdownFlags, DWORD dwReason) |
|
◆ AbortSystemShutdownA()
Definition at line 20 of file shutdown.c.
21{
26
30 {
33 }
34
38 return rv;
39}
BOOL WINAPI AbortSystemShutdownW(LPCWSTR lpMachineName)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSYSAPI NTSTATUS NTAPI RtlAnsiStringToUnicodeString(PUNICODE_STRING DestinationString, PANSI_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
◆ AbortSystemShutdownW()
Definition at line 48 of file shutdown.c.
49{
51
53 {
55 }
57 {
59 }
61
63 {
64 TRACE(
"BaseAbortSystemShutdown() failed (Error %lu)\n", dwError);
67 }
68
70}
ULONG __stdcall BaseAbortSystemShutdown(PREGISTRY_SERVER_NAME ServerName)
#define EXCEPTION_EXECUTE_HANDLER
#define RpcExceptionCode()
PWCHAR PREGISTRY_SERVER_NAME
Referenced by AbortSystemShutdownA(), and wmain().
◆ InitiateShutdownA()
Definition at line 314 of file shutdown.c.
319{
325
328
329 if (lpMachineName)
330 {
334 {
337
340 }
341 }
342
343 if (lpMessage)
344 {
348 {
351
354 }
355 }
356
359 dwGracePeriod,
360 dwShutdownFlags,
363
364
365 if (lpMachineName)
367
368 if (lpMessage)
370
372 return rv;
373}
DWORD WINAPI InitiateShutdownW(LPWSTR lpMachineName, LPWSTR lpMessage, DWORD dwGracePeriod, DWORD dwShutdownFlags, DWORD dwReason)
DWORD WINAPI GetLastError(void)
◆ InitiateShutdownW()
◆ InitiateSystemShutdownA()
Definition at line 80 of file shutdown.c.
85{
90
93
94 if (lpMachineName)
95 {
99 {
102
105 }
106 }
107
108 if (lpMessage)
109 {
113 {
116
119 }
120 }
121
125 bForceAppsClosed,
126 bRebootAfterShutdown);
127
128
129 if (lpMachineName)
131
132 if (lpMessage)
134
136}
BOOL WINAPI InitiateSystemShutdownW(LPWSTR lpMachineName, LPWSTR lpMessage, DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
◆ InitiateSystemShutdownExA()
Definition at line 187 of file shutdown.c.
193{
198
201
202 if (lpMachineName)
203 {
207 {
210
213 }
214 }
215
216 if (lpMessage)
217 {
221 {
224
227 }
228 }
229
233 bForceAppsClosed,
234 bRebootAfterShutdown,
236
237
238 if (lpMachineName)
240
241 if (lpMessage)
243
245}
BOOL WINAPI InitiateSystemShutdownExW(LPWSTR lpMachineName, LPWSTR lpMessage, DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown, DWORD dwReason)
◆ InitiateSystemShutdownExW()
Definition at line 254 of file shutdown.c.
260{
263
265
267 {
271 bForceAppsClosed,
272 bRebootAfterShutdown,
274 }
276 {
278 }
280
282 {
283 TRACE(
"BaseInitiateSystemShutdownEx() failed (Error %lu)\n", dwError);
286 }
287
289}
ULONG __stdcall BaseInitiateSystemShutdownEx(PREGISTRY_SERVER_NAME ServerName, PRPC_UNICODE_STRING lpMessage, ULONG dwTimeout, BOOLEAN bForceAppsClosed, BOOLEAN bRebootAfterShutdown, ULONG dwReason)
static const WCHAR Message[]
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
Referenced by InitiateSystemShutdownExA(), and wmain().
◆ InitiateSystemShutdownW()
Definition at line 145 of file shutdown.c.
150{
153
155
157 {
161 bForceAppsClosed,
162 bRebootAfterShutdown);
163 }
165 {
167 }
169
171 {
172 TRACE(
"BaseInitiateSystemShutdown() failed (Error %lu)\n", dwError);
175 }
176
178}
ULONG __stdcall BaseInitiateSystemShutdown(PREGISTRY_SERVER_NAME ServerName, PRPC_UNICODE_STRING lpMessage, ULONG dwTimeout, BOOLEAN bForceAppsClosed, BOOLEAN bRebootAfterShutdown)
Referenced by InitiateSystemShutdownA().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
advapi |
| ) |
|