Differences From Artifact [ed15fe1b7afa0e8f]:
- File
src/win32/lmshare.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 [95dca8c0f3ce0fc0]:
- File
src/win32/lmshare.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.
4 * Windows API header module * 4 * Windows API header module *
5 * * 5 * *
6 * Translated from MinGW Windows headers * 6 * Translated from MinGW Windows headers *
7 * * 7 * *
8 * Placed into public domain * 8 * Placed into public domain *
9 \***********************************************************************/ 9 \***********************************************************************/
10 module win32.lmshare; 10 module win32.lmshare;
> 11 pragma(lib, "netapi");
11 12
12 import win32.lmcons; 13 import win32.lmcons;
13 private import win32.w32api, win32.windef; 14 private import win32.w32api, win32.windef;
14 15
15 static if (_WIN32_WINNT_ONLY) { <
16 pragma(lib, "netapi.lib"); <
17 } <
18 /* else { <
19 // only for WinME, 98, 95. <
20 pragma(lib, "svrapi.lib") <
21 } <
22 */ <
23 16
24 const SHARE_NETNAME_PARMNUM = 1; 17 const SHARE_NETNAME_PARMNUM = 1;
25 const SHARE_TYPE_PARMNUM = 3; 18 const SHARE_TYPE_PARMNUM = 3;
26 const SHARE_REMARK_PARMNUM = 4; 19 const SHARE_REMARK_PARMNUM = 4;
27 const SHARE_PERMISSIONS_PARMNUM = 5; 20 const SHARE_PERMISSIONS_PARMNUM = 5;
28 const SHARE_MAX_USES_PARMNUM = 6; 21 const SHARE_MAX_USES_PARMNUM = 6;
29 const SHARE_CURRENT_USES_PARMNUM = 7; 22 const SHARE_CURRENT_USES_PARMNUM = 7;