diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-18 14:08:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-18 14:08:03 +0300 |
commit | 17c1e4a24925257d2703cebf0c73024a05ac1a42 (patch) | |
tree | db28847b48ed37e10d72549339ea6736ed9b6f4d /include/msapi/hwbrk.h | |
parent | 8b4cf23b3aca667aba5429ee9e5b45b578db71d7 (diff) |
handy runtime debugging tool © Michael Chourdakis
gotten from https://www.codeproject.com/Articles/28071/Toggle-hardware-data-read-execute-breakpoints-prog
Diffstat (limited to 'include/msapi/hwbrk.h')
-rw-r--r-- | include/msapi/hwbrk.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/msapi/hwbrk.h b/include/msapi/hwbrk.h new file mode 100644 index 0000000000..1817d0f2c0 --- /dev/null +++ b/include/msapi/hwbrk.h @@ -0,0 +1,29 @@ +// +#ifndef _HWBRK_H +#define _HWBRK_H + +enum HWBRK_TYPE + { + HWBRK_TYPE_CODE, + HWBRK_TYPE_READWRITE, + HWBRK_TYPE_WRITE, + }; + +enum HWBRK_SIZE + { + HWBRK_SIZE_1, + HWBRK_SIZE_2, + HWBRK_SIZE_4, + HWBRK_SIZE_8, + }; + +HANDLE SetHardwareBreakpoint(HANDLE hThread,HWBRK_TYPE Type,HWBRK_SIZE Size,void* s); +bool RemoveHardwareBreakpoint(HANDLE hBrk); + +#ifdef _WIN64 + #pragma comment(lib, "hwbrk64.lib") +#else + #pragma comment(lib, "hwbrk32.lib") +#endif + +#endif
\ No newline at end of file |