Thread: Closing a handle

  1. #1

    Closing a handle

    I have opened a handle for a port using CreateFile() but don't know how to close it. Can you help me?

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    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 :-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting other processes class names
    By Hawkin in forum Windows Programming
    Replies: 3
    Last Post: 03-20-2008, 04:02 PM
  2. Direct3D problem
    By cboard_member in forum Game Programming
    Replies: 10
    Last Post: 04-09-2006, 03:36 AM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  5. closing handle
    By swordfish in forum C++ Programming
    Replies: 6
    Last Post: 10-18-2001, 06:47 AM