Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this method to disable one or more privileges in the CAccessToken object.
bool DisablePrivileges(
const CAtlArray< LPCTSTR >& rPrivileges,
CTokenPrivileges* pPreviousState = NULL
) throw(...);
Parameters
rPrivileges
Pointer to an array of strings containing the privileges to disable in the CAccessToken object.pPreviousState
Pointer to a CTokenPrivileges object which will contain the previous state of the privileges.
Return Value
Returns true on success, false on failure.
Requirements
Header: atlsecurity.h
See Also
Reference
CAccessToken::DisablePrivilege
CAccessToken::EnablePrivileges