debugapi.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. #ifndef _APISETDEBUG_
  6. #define _APISETDEBUG_
  7. #include <apiset.h>
  8. #include <apisetcconv.h>
  9. #include <minwindef.h>
  10. #include <minwinbase.h>
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
  15. WINBASEAPI VOID WINAPI DebugBreak (VOID);
  16. WINBASEAPI WINBOOL WINAPI IsDebuggerPresent (VOID);
  17. WINBASEAPI VOID WINAPI OutputDebugStringA (LPCSTR lpOutputString);
  18. WINBASEAPI VOID WINAPI OutputDebugStringW (LPCWSTR lpOutputString);
  19. #define OutputDebugString __MINGW_NAME_AW(OutputDebugString)
  20. #endif
  21. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  22. WINBASEAPI WINBOOL APIENTRY ContinueDebugEvent (DWORD dwProcessId, DWORD dwThreadId, DWORD dwContinueStatus);
  23. WINBASEAPI WINBOOL APIENTRY WaitForDebugEvent (LPDEBUG_EVENT lpDebugEvent, DWORD dwMilliseconds);
  24. #if WINVER >= _WIN32_WINNT_WIN10
  25. WINBASEAPI WINBOOL APIENTRY WaitForDebugEventEx (LPDEBUG_EVENT lpDebugEvent, DWORD dwMilliseconds);
  26. #endif
  27. WINBASEAPI WINBOOL APIENTRY DebugActiveProcess (DWORD dwProcessId);
  28. WINBASEAPI WINBOOL APIENTRY DebugActiveProcessStop (DWORD dwProcessId);
  29. WINBASEAPI WINBOOL WINAPI CheckRemoteDebuggerPresent (HANDLE hProcess, PBOOL pbDebuggerPresent);
  30. #endif
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif