comparison win32/errorrep.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
comparison
equal deleted inserted replaced
0:586e4a649642 1:4a9dcbd9e54f
1 /***********************************************************************\
2 * errorrep.d *
3 * *
4 * Windows API header module *
5 * *
6 * Translated from MinGW Windows headers *
7 * by Stewart Gordon *
8 * *
9 * Placed into public domain *
10 \***********************************************************************/
11 module win32.errorrep;
12
13 private import win32.w32api, win32.windef;
14
15 static assert (_WIN32_WINNT >= 0x501,
16 "win32.errorrep is available only if version WindowsXP, Windows2003 "
17 "or WindowsVista is set");
18
19 enum EFaultRepRetVal {
20 frrvOk,
21 frrvOkManifest,
22 frrvOkQueued,
23 frrvErr,
24 frrvErrNoDW,
25 frrvErrTimeout,
26 frrvLaunchDebugger,
27 frrvOkHeadless // = 7
28 }
29
30 extern (Windows) {
31 BOOL AddERExcludedApplicationA(LPCSTR);
32 BOOL AddERExcludedApplicationW(LPCWSTR);
33 EFaultRepRetVal ReportFault(LPEXCEPTION_POINTERS, DWORD);
34 }
35
36 version (Unicode) {
37 alias AddERExcludedApplicationW AddERExcludedApplication;
38 } else {
39 alias AddERExcludedApplicationA AddERExcludedApplication;
40 }