The ChangeEngineState callback method is called by the engine when its state has changed.
- Flags [in]
Specifies a bit-set indicating the type of changes that occurred in the engine's state. The following bit flags might be set:
The current thread has changed, which implies that the current target and current process might also have changed.
The effective processor has changed.
One or more breakpoints have changed.
The code interpretation level has changed.
The execution status has changed.
The engine options have changed.
The log file has been opened or closed.
The default radix has changed.
The event filters have changed.
The process options for the current process have changed.
Extension DLLs have been loaded or unloaded. (For more information, see Loading Debugger Extension DLLs.)
A target has been added or removed.
The assemble options have changed.
The default expression syntax has changed.
Text replacements have changed.
- Argument [in]
Provides additional information about the change to the engine's state. If more than one bit flag is set in the Flags parameter, the Argument parameter is not used. Otherwise, the interpretation of the value of Argument depends on the value of Flags:
The value of Argument is the current engine thread ID or--if there is no current thread--DEBUG_ANY_ID. For more information, see Threads and Processes.
The value of Argument is the type of the effective processor.
The value of Argument is the breakpoint ID of the breakpoint that was changed or--if more than one breakpoint was changed--DEBUG_ANY_ID. For more information, see Breakpoints.
The value of Argument is the code interpretation level.
The value of Argument is the execution status (as described in the DEBUG_STATUS_XXX topic) possibly combined with the bit flag DEBUG_STATUS_INSIDE_WAIT. DEBUG_STATUS_INSIDE_WAIT is set when a WaitForEvent call is pending. For more information, see Debugging Session and Execution Model.
The value of Argument is the engine options.
The value of Argument is TRUE if the log file was opened and FALSE if the log file was closed.
The value of Argument is the default radix.
The value of Argument is the index of the event filter that was changed or--if more than one event filter was changed--DEBUG_ANY_ID.
The value of Argument is the process options for the current process.
The value of Argument is zero.
The value of Argument is the target ID of the target that was added or--if a target was removed--DEBUG_ANY_ID.
The value of Argument is the assemble options.
The value of Argument is the default expression syntax.
The value of Argument is DEBUG_ANY_ID.
The return value is ignored by the engine unless it indicates a remote procedure call error; in this case the client, with which this IDebugEventCallbacks object is registered, is disabled.
This method is only called by the engine if the DEBUG_EVENT_CHANGE_ENGINE_STATE flag is set in the mask returned by IDebugEventCallbacks::GetInterestMask.
For more information about handling events, see Monitoring Events.