Working with Characters and Strings(Chapter 3 of Windows Via C/C++)

本文探讨了内核对象句柄为何被设计为进程相对的,而非系统范围内的值,这是为了增强系统的健壮性和安全性。文章介绍了三种共享内核对象的机制:对象句柄继承、命名对象和复制对象句柄。
  Because kernel object handles are process-relative, performing these tasks is difficult. However, Microsoft had several good reasons for designing the handles to be process-relative. The most important reason was robustness. If kernel object handles were systemwide values, one process could easily obtain the handle to an object that another process was using and wreak havoc on that process. Another reason for process-relative handles is security. Kernel objects are protected with security, and a process must request permission to manipulate an object before attempting to manipulate it. The creator of the object can prevent an unauthorized user from touching the object simply by denying access to it.

  There are three different mechanisms that allow processes to share kernel objects: using object handle inheritance, naming objects, and duplicating object handles. 

转载于:https://www.cnblogs.com/zhtf2014/archive/2010/12/20/1911815.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值