I have attached to a running process with DebugActiveProcess and I need to intercept CREATE_PROCESS_DEBUG_EVENT events. It appears that usual WaitForDebugEvent doesn't catch creating of child processes. I was advised to set a bp to CreateProcessW function.
Could you please tell how to do it?