• Advertisement
Sign in to follow this  

Closing Handle from FindWindow

This topic is 4808 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to track down a memory leak. Does the handle from the FindWindow function call need to be closed? The examples that I have seen do not seem to close it. I tried to close it with CloseHandle func, but got an error. Is there a special "Close Window Handle" function??? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
No, you don't have to (in fact you shouldn't).
FindWindow just returns a handle to a window (if it found one). This handle already 'existed' before you called the function.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement