Windows Programming Question:
Download Questions PDF

What happens when the CloseHandle(handle) is called?

Windows Programming Interview Question
Windows Programming Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is the need of process relative handles?What is handle?