Artifact 328401c2f5b596bc05a112c71a0559e6ffbe2317
- File
src/win32/cpl.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.
/***********************************************************************\ * cpl.d * * * * Windows API header module * * * * Translated from MinGW Windows headers * * by Stewart Gordon * * * * Placed into public domain * \***********************************************************************/ module win32.cpl; private import win32.windef, win32.winuser; enum : uint { WM_CPL_LAUNCH = WM_USER + 1000, WM_CPL_LAUNCHED } enum : uint { CPL_DYNAMIC_RES, CPL_INIT, CPL_GETCOUNT, CPL_INQUIRE, CPL_SELECT, CPL_DBLCLK, CPL_STOP, CPL_EXIT, CPL_NEWINQUIRE, CPL_STARTWPARMSA, CPL_STARTWPARMSW, // = 10 CPL_SETUP = 200 } extern (Windows) alias LONG function(HWND, UINT, LONG, LONG) APPLET_PROC; struct CPLINFO { int idIcon; int idName; int idInfo; LONG lData; } alias CPLINFO* LPCPLINFO; struct NEWCPLINFOA { DWORD dwSize = NEWCPLINFOA.sizeof; DWORD dwFlags; DWORD dwHelpContext; LONG lData; HICON hIcon; CHAR[32] szName; CHAR[64] szInfo; CHAR[128] szHelpFile; } alias NEWCPLINFOA* LPNEWCPLINFOA; struct NEWCPLINFOW { DWORD dwSize = NEWCPLINFOW.sizeof; DWORD dwFlags; DWORD dwHelpContext; LONG lData; HICON hIcon; WCHAR[32] szName; WCHAR[64] szInfo; WCHAR[128] szHelpFile; } alias NEWCPLINFOW* LPNEWCPLINFOW; version (Unicode) { alias CPL_STARTWPARMSW CPL_STARTWPARMS; alias NEWCPLINFOW NEWCPLINFO; } else { alias CPL_STARTWPARMSA CPL_STARTWPARMS; alias NEWCPLINFOA NEWCPLINFO; } alias NEWCPLINFO* LPNEWCPLINFO;