For the specific part of your question, try entering this expression:
wcsicmp(*(wchar_t**)(esp+4), L"known path…") == 0
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When I set a breakpoint on a kernel32 function it works but I'm wonder what I can type into Conditions expression box:
Specifically what I'd like to do would be to compare the string which I know is at the stack register plus 4 bytes (esp+4) since that'll be the file path name. Is that possible? If not what can I type in there for this kind of breakpoint?
Cheers,
-James
PS
I know I can do this in windbg, I'm looking to do this in VS2019
For the specific part of your question, try entering this expression:
wcsicmp(*(wchar_t**)(esp+4), L"known path…") == 0