CAccessToken::EnablePrivilege
Call this method to enable a privilege in the CAccessToken object.
bool EnablePrivilege(
LPCTSTR pszPrivilege,
CTokenPrivileges* pPreviousState = NULL
) throw(...);
Параметры
pszPrivilege
Pointer to a string containing the privilege to enable in the CAccessToken object.pPreviousState
Pointer to a CTokenPrivileges object which will contain the previous state of the privileges.
Возвращаемое значение
Returns true on success, false on failure.
Требования
Header: atlsecurity.h