| 1 |
/** |
| 2 |
* Windows API header module |
| 3 |
* |
| 4 |
* Translated from MinGW Windows headers |
| 5 |
* |
| 6 |
* Authors: Stewart Gordon |
| 7 |
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) |
| 8 |
* Source: $(DRUNTIMESRC core/sys/windows/_errorrep.d) |
| 9 |
*/ |
| 10 |
module core.sys.windows.errorrep; |
| 11 |
version (Windows): |
| 12 |
|
| 13 |
version (ANSI) {} else version = Unicode; |
| 14 |
|
| 15 |
import core.sys.windows.w32api, core.sys.windows.windef; |
| 16 |
|
| 17 |
static assert (_WIN32_WINNT >= 0x501, |
| 18 |
"core.sys.windows.errorrep is available only if version WindowsXP, Windows2003 " |
| 19 |
~ "or WindowsVista is set"); |
| 20 |
|
| 21 |
enum EFaultRepRetVal { |
| 22 |
frrvOk, |
| 23 |
frrvOkManifest, |
| 24 |
frrvOkQueued, |
| 25 |
frrvErr, |
| 26 |
frrvErrNoDW, |
| 27 |
frrvErrTimeout, |
| 28 |
frrvLaunchDebugger, |
| 29 |
frrvOkHeadless // = 7 |
| 30 |
} |
| 31 |
|
| 32 |
extern (Windows) nothrow @nogc { |
| 33 |
BOOL AddERExcludedApplicationA(LPCSTR); |
| 34 |
BOOL AddERExcludedApplicationW(LPCWSTR); |
| 35 |
EFaultRepRetVal ReportFault(LPEXCEPTION_POINTERS, DWORD); |
| 36 |
} |
| 37 |
|
| 38 |
version (Unicode) { |
| 39 |
alias AddERExcludedApplicationW AddERExcludedApplication; |
| 40 |
} else { |
| 41 |
alias AddERExcludedApplicationA AddERExcludedApplication; |
| 42 |
} |