DEVFYI - Developer Resource - FYI

What happens when the CloseHandle(handle) is called?

Windows programming Interview Questions and Answers


(Continued from previous question...)

13. What happens when the CloseHandle(handle) is called?

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.

(Continued on next question...)

Other Interview Questions