The ProcessCreateEvent method of the IRemoteDebugManagerCallbackEx interface is called by the Microsoft VM to notify the debugger that the requested process to be debugged has started. The Microsoft VM passes in an IRemoteProcess interface representing the running Java process.
HRESULT ProcessCreateEvent(IRemoteProcess *pProcessNew, IRemoteProcess *pProcessParent)
[in] pProcessNew | The new Java process. |
[in] pProcessParent | Reserved. |
S_FALSE Success.
E_FAIL Failure.
The debugger establishes a session with the new Java process by calling RegisterCallback. RegisterCallback registers the debugger's IRemoteProcessCallbackEx2 interface with the new Java process during the Microsoft VM's call to ProcessCreateEvent. The Microsoft VM responds to RegisterCallback by calling ThreadCreateEvent for each running Java thread, and by calling ClassLoadEvent for each loaded Java class.