0

I'm trying to determine if a handle is being closed so I need to break on a DestroyMenu() call when called with a particular handle. Using MSVS2013.

Is there a way of doing this?

Adrian
  • 10,246
  • 4
  • 44
  • 110
  • On _any_ call, or only from your code? – CodeCaster Nov 14 '14 at 16:35
  • @CodeCaster Any call. But if you have a way to do it from just my code, that would be interesting too. – Adrian Nov 14 '14 at 16:51
  • Well see for example [How can I hook Windows functions in C/C++?](http://stackoverflow.com/questions/873658/how-can-i-hook-windows-functions-in-c-c). – CodeCaster Nov 14 '14 at 16:57
  • I've heard of windows hooking but my priorities have changed. I'll look into this later. Thanks for your help. – Adrian Nov 14 '14 at 18:26

0 Answers0