The CreateThread callback method is called by the engine when a create-threaddebugging event occurs in the target.
HRESULT CreateThread( ULONG64 Handle, ULONG64 DataOffset, ULONG64 StartOffset );
Specifies the handle for the thread whose creation caused the event. If this information is not available, Handle will be NULL.
Specifies a block of data that the operating system maintains for this thread. The actual data in the block is operating system-specific. If the operating system does not have such a block, DataOffset will be NULL.
Specifies the starting location in the target's virtual address space of the thread. If this information is not available, StartOffset will be NULL.
This method returns a DEBUG_STATUS_XXX value, which indicates how the execution of the target should proceed after the engine processes this event. For details on how the engine treats this value, see Monitoring Events.
This method is only called by the engine if the DEBUG_EVENT_CREATE_THREAD flag is set in the mask returned by IDebugEventCallbacks::GetInterestMask.
|Header||dbgeng.h (include Dbgeng.h)|