I have opened a handle for a port using CreateFile() but don't know how to close it. Can you help me?
This is a discussion on Closing a handle within the C++ Programming forums, part of the General Programming Boards category; I have opened a handle for a port using CreateFile() but don't know how to close it. Can you help ...
I have opened a handle for a port using CreateFile() but don't know how to close it. Can you help me?
ummmm the rather imaginatively titled CloseHandle (filehandle) will do the job. Dont you guys ever read the documentation that comes with a compiler!
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi