CloseHandle Function

Closes a Handle. If the handle has multiple copies open, it is not destroyed unless all copies are closed.

void CloseHandle(Handle hndl)


Handle hndl

Handle to close.


Invalid handles will cause a run time error.


Closing a Handle has a different meaning for each Handle type. Make sure you read the documentation on whatever provided the Handle.