diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-07-15 20:46:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-15 20:46:12 -0400 |
| commit | 3f4abe97bdbe666dbb3532c14a97e414aae4caca (patch) | |
| tree | ba08f2f14e79a8c8f7e83cea0344826fefffd9a2 /lib/libc/include/any-windows-any/debugapi.h | |
| parent | 33eaaadd01b20d1327b67758664ce1265216e471 (diff) | |
| parent | aff90c22520bbbadd56fbfd1378f161ee8a3cdb2 (diff) | |
| download | zig-3f4abe97bdbe666dbb3532c14a97e414aae4caca.tar.gz zig-3f4abe97bdbe666dbb3532c14a97e414aae4caca.zip | |
Merge pull request #2892 from ziglang/install-with-zig-build
move some of the installation from cmake to zig build
Diffstat (limited to 'lib/libc/include/any-windows-any/debugapi.h')
| -rw-r--r-- | lib/libc/include/any-windows-any/debugapi.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/libc/include/any-windows-any/debugapi.h b/lib/libc/include/any-windows-any/debugapi.h new file mode 100644 index 0000000000..75260bc140 --- /dev/null +++ b/lib/libc/include/any-windows-any/debugapi.h @@ -0,0 +1,37 @@ +/** + * This file is part of the mingw-w64 runtime package. + * No warranty is given; refer to the file DISCLAIMER within this package. + */ +#ifndef _APISETDEBUG_ +#define _APISETDEBUG_ + +#include <apiset.h> +#include <apisetcconv.h> +#include <minwindef.h> +#include <minwinbase.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) + WINBASEAPI WINBOOL WINAPI IsDebuggerPresent (VOID); + WINBASEAPI VOID WINAPI OutputDebugStringA (LPCSTR lpOutputString); + WINBASEAPI VOID WINAPI OutputDebugStringW (LPCWSTR lpOutputString); + +#define OutputDebugString __MINGW_NAME_AW(OutputDebugString) +#endif + +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) + WINBASEAPI VOID WINAPI DebugBreak (VOID); + WINBASEAPI WINBOOL APIENTRY ContinueDebugEvent (DWORD dwProcessId, DWORD dwThreadId, DWORD dwContinueStatus); + WINBASEAPI WINBOOL APIENTRY WaitForDebugEvent (LPDEBUG_EVENT lpDebugEvent, DWORD dwMilliseconds); + WINBASEAPI WINBOOL APIENTRY DebugActiveProcess (DWORD dwProcessId); + WINBASEAPI WINBOOL APIENTRY DebugActiveProcessStop (DWORD dwProcessId); + WINBASEAPI WINBOOL WINAPI CheckRemoteDebuggerPresent (HANDLE hProcess, PBOOL pbDebuggerPresent); +#endif + +#ifdef __cplusplus +} +#endif +#endif |
