Can I add breakpoint on windows CreateProcess API in Visual studio like I can do in Windbg?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes – Go “Debug / New breakpoint / Break at function…” and paste this:
into the Function box.
That assumes a Unicode build – replace
WwithAfor ANSI builds.A bit of explanation: the
@40piece is part of the stdcall calling convention, and gives the number of bytes of parameters that the function takes. In win32, this is almost always 4 times the number of parameters. The underscore is also part of the stdcall calling convention.A related note: sometimes the name of the function as seen by the debugger is different from its real name – see this blog post for an example, and how to find the right name to use: Setting a Visual Studio breakpoint on a Win32 API function in user32.dll