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

滄海一幻覺
TA貢獻(xiàn)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, //要修改訪問權(quán)限的進(jìn)程句柄
__in DWORD DesiredAccess, //指定你要進(jìn)行的操作類型
__out PHANDLE TokenHandle //返回的訪問令牌指針
);
- 2 回答
- 0 關(guān)注
- 439 瀏覽
添加回答
舉報
0/150
提交
取消