Differences From Artifact [682f5c773e9d0f3b]:
- File
src/win32/dhcpcsdk.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 [ca4c8f50da03899c]:
- File
src/win32/dhcpcsdk.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.dhcpcsdk; 11 module win32.dhcpcsdk;
12 12
13 private import win32.w32api, win32.windef; 13 private import win32.w32api, win32.windef;
14 14
15 static assert (_WIN32_WINNT_ONLY && _WIN32_WINNT >= 0x500, | 15 static assert (_WIN32_WINNT >= 0x500,
16 "win32.dhcpcsdk is available only if version WindowsXP, Windows2003 | 16 "win32.dhcpcsdk is available only if version Windows2000, WindowsXP, Windows2003
17 or WindowsVista is set, or both Windows2000 and WindowsNTonly are set"); | 17 or WindowsVista is set");
18 18
19 //#if (_WIN32_WINNT >= 0x0500) | 19 //#if (_WIN32_WINNT >= 0x500)
20 20
21 // FIXME: check type 21 // FIXME: check type
22 const DHCPCAPI_REGISTER_HANDLE_EVENT = 1; 22 const DHCPCAPI_REGISTER_HANDLE_EVENT = 1;
23 const DHCPCAPI_REQUEST_PERSISTENT = 1; 23 const DHCPCAPI_REQUEST_PERSISTENT = 1;
24 const DHCPCAPI_REQUEST_SYNCHRONOUS = 2; 24 const DHCPCAPI_REQUEST_SYNCHRONOUS = 2;
25 25
26 struct DHCPCAPI_CLASSID { 26 struct DHCPCAPI_CLASSID {
................................................................................................................................................................................
51 DWORD DhcpDeRegisterParamChange(DWORD, LPVOID, LPVOID); 51 DWORD DhcpDeRegisterParamChange(DWORD, LPVOID, LPVOID);
52 DWORD DhcpRegisterParamChange(DWORD, LPVOID, PWSTR, LPDHCPCAPI_CLASSID, 52 DWORD DhcpRegisterParamChange(DWORD, LPVOID, PWSTR, LPDHCPCAPI_CLASSID,
53 DHCPCAPI_PARAMS_ARRAY, LPVOID); 53 DHCPCAPI_PARAMS_ARRAY, LPVOID);
54 DWORD DhcpRemoveDNSRegistrations(); 54 DWORD DhcpRemoveDNSRegistrations();
55 DWORD DhcpUndoRequestParams(DWORD, LPVOID, LPWSTR, LPWSTR); 55 DWORD DhcpUndoRequestParams(DWORD, LPVOID, LPWSTR, LPWSTR);
56 } 56 }
57 57
58 //#endif // (_WIN32_WINNT >= 0x0500) | 58 //#endif // (_WIN32_WINNT >= 0x500)