mirror of https://github.com/vxunderground/VX-API
17 lines
420 B
C++
17 lines
420 B
C++
#include "Win32Helper.h"
|
|
|
|
BOOL InitHardwareBreakpointEngine(VOID)
|
|
{
|
|
if (GlobalHardwareBreakpointObject.IsInit)
|
|
return TRUE;
|
|
|
|
GlobalHardwareBreakpointObject.HandlerObject = AddVectoredExceptionHandler(1, ExceptionHandlerCallbackRoutine);
|
|
if (!GlobalHardwareBreakpointObject.HandlerObject)
|
|
return FALSE;
|
|
|
|
InitializeCriticalSection(&CriticalSection);
|
|
|
|
GlobalHardwareBreakpointObject.IsInit = TRUE;
|
|
|
|
return TRUE;
|
|
} |