Artifact 70d972547cb509ad337905c7c445e664a715c30c
- 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.
/***********************************************************************\
* lmapibuf.d *
* *
* Windows API header module *
* *
* Translated from MinGW Windows headers *
* *
* Placed into public domain *
\***********************************************************************/
module win32.lmapibuf;
pragma(lib, "netapi32");
private import win32.lmcons, win32.windef;
extern (Windows) {
NET_API_STATUS NetApiBufferAllocate(DWORD, PVOID*);
NET_API_STATUS NetApiBufferFree(PVOID);
NET_API_STATUS NetApiBufferReallocate(PVOID, DWORD, PVOID*);
NET_API_STATUS NetApiBufferSize(PVOID, PDWORD);
NET_API_STATUS NetapipBufferAllocate(DWORD, PVOID*);
}