Windows Programming Question:
What happens when the CloseHandle(handle) is called?
Answer:
This function first checks the calling process’s handle table to ensure that the index (handle) passed to it identifies an object that the process does in fact have access to. If the index is valid, the system gets the address of the kernel object’s data structure and decrements the usage count member in the structure; if the count is zero, the kernel destroys the kernel object from memory.
Previous Question | Next Question |
What is the need of process relative handles? | What is handle? |