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)

Parameters

Handle hndl

Handle to close.

Errors

Invalid handles will cause a run time error.

Notes

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