Windows Programming Question:

What happens when the CloseHandle(handle) is called?

Tweet Share WhatsApp

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.

Download Windows Programming PDF Read All 30 Windows Programming Questions
Previous QuestionNext Question
What is the need of process relative handles?What is handle?