Sign in to follow this  
fathom88

Closing Handle from FindWindow

Recommended Posts

fathom88    180
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
Wan    1366
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this