DEVFYI - Developer Resource - FYI

What is the purpose of Process Handle Table?

Windows programming Interview Questions and Answers


(Continued from previous question...)

9. What is the purpose of Process Handle Table?

When a process is initialized, the system allocates a handle table for it. This handle table is used only for kernel objects, not for User objects or GDI objects. When a process first initializes, its handle table is empty. Then when a thread in the process calls a function that creates a kernel object, such as CreateFileMapping , the kernel allocates a block of memory for the object and initializes it; the kernel then scans the process’s handle table for an empty entry

(Continued on next question...)

Other Interview Questions