Differences From Artifact [31686aa542bfe49a]:
- File
src/win32/lmapibuf.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 [70d972547cb509ad]:
- File
src/win32/lmapibuf.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 4 * Windows API header module *
5 5 * *
6 6 * Translated from MinGW Windows headers *
7 7 * *
8 8 * Placed into public domain *
9 9 \***********************************************************************/
10 10 module win32.lmapibuf;
11 -pragma(lib, "netapi32.lib");
11 +pragma(lib, "netapi32");
12 12
13 13 private import win32.lmcons, win32.windef;
14 14
15 15 extern (Windows) {
16 16 NET_API_STATUS NetApiBufferAllocate(DWORD, PVOID*);
17 17 NET_API_STATUS NetApiBufferFree(PVOID);
18 18 NET_API_STATUS NetApiBufferReallocate(PVOID, DWORD, PVOID*);
19 19 NET_API_STATUS NetApiBufferSize(PVOID, PDWORD);
20 20 NET_API_STATUS NetapipBufferAllocate(DWORD, PVOID*);
21 21 }