"Fossies" - the Fresh Open Source Software Archive

Member "dmd2/src/druntime/src/core/sys/windows/errorrep.d" (20 Nov 2020, 1080 Bytes) of package /linux/misc/dmd.2.094.2.linux.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) D source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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 src/core/sys/windows/_errorrep.d)
    9  */
   10 module core.sys.windows.errorrep;
   11 version (Windows):
   12 @system:
   13 
   14 version (ANSI) {} else version = Unicode;
   15 
   16 private import core.sys.windows.w32api, core.sys.windows.windef;
   17 
   18 static assert (_WIN32_WINNT >= 0x501,
   19     "core.sys.windows.errorrep is available only if version WindowsXP, Windows2003 "
   20     ~ "or WindowsVista is set");
   21 
   22 enum EFaultRepRetVal {
   23     frrvOk,
   24     frrvOkManifest,
   25     frrvOkQueued,
   26     frrvErr,
   27     frrvErrNoDW,
   28     frrvErrTimeout,
   29     frrvLaunchDebugger,
   30     frrvOkHeadless // = 7
   31 }
   32 
   33 extern (Windows) {
   34     BOOL AddERExcludedApplicationA(LPCSTR);
   35     BOOL AddERExcludedApplicationW(LPCWSTR);
   36     EFaultRepRetVal ReportFault(LPEXCEPTION_POINTERS, DWORD);
   37 }
   38 
   39 version (Unicode) {
   40     alias AddERExcludedApplicationW AddERExcludedApplication;
   41 } else {
   42     alias AddERExcludedApplicationA AddERExcludedApplication;
   43 }