How to close the console after I get input?

I currently have the console get the file name for my win32 program and want to close it after I get the input for the file name.

I have been having trouble finding what function to use to close the console but keep my GUI open.
Topic archived. No new replies allowed.