首页 > 试题广场 >

What is a handle,and how does

[问答题]

What is a handle,and how does a process obtain a handle?

推荐

Answer:User-mode code can access kernel-mode objects by using a reference value called a handle.An object handle is thus an identifier (unique to a process)that allows access and manipulation of a system resource.When a user-mode process wants to use an object it calls the

object manager's open method.A reference to the object is inserted in the process's object table and a handle is returned.Processes can obtain handles by creating an object,opening an existing object,receiving aduplicated handle from another process,or by inheriting a handle from a parent process.

发表于 2018-05-05 21:05:37 回复(0)