The CreateThread callback method is called by the engine when a create-threaddebugging event occurs in the target.
HRESULT CreateThread( [in] ULONG64 Handle, [in] ULONG64 DataOffset, [in] ULONG64 StartOffset );
- Handle [in]
Specifies the handle for the thread whose creation caused the event. If this information is not available, Handle will be NULL.
- DataOffset [in]
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.
- StartOffset [in]
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.