I attached Ollydbg to a process, and try to set breakpoint on
CreateWindowExW. I typed
in command line. Then I checked the Breakpoints window and found it's totally empty.
The same thing works smoothly in IDA pro -- I attached IDA pro to the process I'm going to debug, then in "Modules" window, I choose
user32.dll and right click on
CreateWindowExW and choose "Add breakpoint".
Actually, I found setting breakpoint on Win32 API in Ollydbg is very very hard to use. Based on all information I got by Google, I only need to run
bpx xxxxx to set this kind of breakpoints, but in fact, it's rarely success. Most of time, no breakpoints were set by this.
Did I miss something?
BTW: The process I debugged loaded a lot of DLLs dynamically. Is this the problem?