Differences From Artifact [f4b497581be6267b]:
- File
src/win32/lmalert.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 [0911235d09725936]:
- File
src/win32/lmalert.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.lmalert; 10 module win32.lmalert;
11 pragma(lib, "netapi32.lib"); | 11 pragma(lib, "netapi32");
12 12
13 private import win32.lmcons, win32.windef; 13 private import win32.lmcons, win32.windef;
14 14
15 const TCHAR[] 15 const TCHAR[]
16 ALERTER_MAILSLOT = `\\.\MAILSLOT\Alerter`, 16 ALERTER_MAILSLOT = `\\.\MAILSLOT\Alerter`,
17 ALERT_PRINT_EVENT = "PRINTING", 17 ALERT_PRINT_EVENT = "PRINTING",
18 ALERT_MESSAGE_EVENT = "MESSAGE", 18 ALERT_MESSAGE_EVENT = "MESSAGE",
................................................................................................................................................................................
42 DWORD alrtad_errcode; 42 DWORD alrtad_errcode;
43 DWORD alrtad_numstrings; 43 DWORD alrtad_numstrings;
44 } 44 }
45 alias ADMIN_OTHER_INFO* PADMIN_OTHER_INFO, LPADMIN_OTHER_INFO; 45 alias ADMIN_OTHER_INFO* PADMIN_OTHER_INFO, LPADMIN_OTHER_INFO;
46 46
47 struct STD_ALERT{ 47 struct STD_ALERT{
48 DWORD alrt_timestamp; 48 DWORD alrt_timestamp;
49 TCHAR alrt_eventname[EVLEN+1]; | 49 TCHAR[EVLEN+1] alrt_eventname;
50 TCHAR alrt_servicename[SNLEN+1]; | 50 TCHAR[SNLEN+1] alrt_servicename;
51 } 51 }
52 alias STD_ALERT* PSTD_ALERT, LPSTD_ALERT; 52 alias STD_ALERT* PSTD_ALERT, LPSTD_ALERT;
53 53
54 struct ERRLOG_OTHER_INFO{ 54 struct ERRLOG_OTHER_INFO{
55 DWORD alrter_errcode; 55 DWORD alrter_errcode;
56 DWORD alrter_offset; 56 DWORD alrter_offset;
57 } 57 }