Differences From Artifact [5b08a7cec4ddc80a]:
- File
src/win32/ntdll.d
- 2015-04-21 10:46:55 - part of checkin [4e2933c620] on branch trunk - Rebased to the latest verson dmd 2.067. Not yet verified the outcome. (user: kinaba) [annotate]
To Artifact [756e171c35e05b4a]:
- File
src/win32/ntdll.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
8 * * 8 * *
9 * Placed into public domain * 9 * Placed into public domain *
10 \***********************************************************************/ 10 \***********************************************************************/
11 module win32.ntdll; 11 module win32.ntdll;
12 12
13 private import win32.w32api; 13 private import win32.w32api;
14 14
15 // http://www.matcode.com/undocwin.h.txt <
16 static assert (_WIN32_WINNT_ONLY, <
17 "win32.ntdll is available only if version WindowsNTonly, WindowsXP, " <
18 "Windows2003 or WindowsVista is set"); <
19 <
20 15
21 enum SHUTDOWN_ACTION { 16 enum SHUTDOWN_ACTION {
22 ShutdownNoReboot, 17 ShutdownNoReboot,
23 ShutdownReboot, 18 ShutdownReboot,
24 ShutdownPowerOff 19 ShutdownPowerOff
25 } 20 }
26 21
27 extern (Windows) uint NtShutdownSystem(SHUTDOWN_ACTION Action); 22 extern (Windows) uint NtShutdownSystem(SHUTDOWN_ACTION Action);