1:GetCurrentProcess 獲取當前進程的一個偽句柄 ,它和進程句柄之間有什么關系??這個偽句柄 是當前的程序還是別的??2:OpenProcessToken這個函數(shù)的第一個參數(shù),如果不是用GetCurrentProcess獲取的偽句柄可以不??
2 回答

滄海一幻覺
TA貢獻1824條經(jīng)驗 獲得超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 //返回的訪問令牌指針
);
- 2 回答
- 0 關注
- 415 瀏覽
添加回答
舉報
0/150
提交
取消