OSDN Git Service

* include/ntdll.h: New file.
authorduda <duda>
Sun, 16 Jun 2002 13:21:37 +0000 (13:21 +0000)
committerduda <duda>
Sun, 16 Jun 2002 13:21:37 +0000 (13:21 +0000)
* lib/ntdll.def: Add NtShutdownSystem.

winsup/w32api/ChangeLog
winsup/w32api/include/ntdll.h [new file with mode: 0644]
winsup/w32api/lib/ntdll.def

index 11e1ef7..ddaff9b 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-16  Egor Duda  <deo@logos-m.ru>
+
+       * include/ntdll.h: New file.
+       * lib/ntdll.def: Add NtShutdownSystem.
+
 2002-06-16  Steven Edwards  <Steven_Ed4153@yahoo.com>
 
        * lib/dinput.def (DirectInputCreateEx): Add stub.
diff --git a/winsup/w32api/include/ntdll.h b/winsup/w32api/include/ntdll.h
new file mode 100644 (file)
index 0000000..b666613
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _NTDLL_H
+#define _NTDLL_H
+#if __GNUC__ >=3
+#pragma GCC system_header
+#endif
+
+typedef enum _SHUTDOWN_ACTION {
+     ShutdownNoReboot,
+     ShutdownReboot,
+     ShutdownPowerOff
+ } SHUTDOWN_ACTION;
+
+DWORD WINAPI NtShutdownSystem (SHUTDOWN_ACTION Action);
+
+#endif /* _NTDLL_H */
index bdfef02..33dfdb0 100644 (file)
@@ -30,6 +30,7 @@ NtProtectVirtualMemory@20
 NtQueryVirtualMemory@24\r
 NtReadFile@36\r
 NtReadVirtualMemory@20\r
+NtShutdownSystem@4\r
 NtUnlockVirtualMemory@16\r
 NtWriteFile@36\r
 NtWriteVirtualMemory@20\r