Windows Programming Question:

Download Job Interview Questions and Answers PDF

What is the purpose of Process Handle Table?

Windows Programming Interview Question
Windows Programming Interview Question

Answer:

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

Download Windows Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What is handle?Which is the data member common to all the kernel object and what is the use of it?