为了账号安全,请及时绑定邮箱和手机立即绑定

求问关于GetCurrentProcess()函数问题?

求问关于GetCurrentProcess()函数问题?

开满天机 2021-08-04 11:07:23
1:GetCurrentProcess 获取当前进程的一个伪句柄 ,它和进程句柄之间有什么关系??这个伪句柄 是当前的程序还是别的??2:OpenProcessToken这个函数的第一个参数,如果不是用GetCurrentProcess获取的伪句柄可以不??
查看完整描述

2 回答

?
沧海一幻觉

TA贡献1824条经验 获得超5个赞

The return value is a pseudo handle to the current process.
A pseudo handle is a special constant that is interpreted as the current process handle. The calling process can use this handle to specify its own process whenever a process handle is required. Pseudo handles are not inherited by child processes.
  BOOL OpenProcessToken(
  __in HANDLE ProcessHandle, //要修改访问权限的进程句柄
  __in DWORD DesiredAccess, //指定你要进行的操作类型
  __out PHANDLE TokenHandle //返回的访问令牌指针
  );



查看完整回答
反对 回复 2021-08-09
  • 2 回答
  • 0 关注
  • 315 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信