CAccessToken::GetImpersonationLevel
呼叫這個方法會取得存取語彙基元模擬等級。
bool GetImpersonationLevel(
SECURITY_IMPERSONATION_LEVEL* pImpersonationLevel
) const throw(...);
參數
- pImpersonationLevel
將接收模擬層級資訊的 SECURITY_IMPERSONATION_LEVEL 列舉型別的指標。
傳回值
如果成功則傳回 true,失敗則傳回 false。
需求
Header: atlsecurity.h