Поделиться через


CAccessToken::DisablePrivileges

Call this method to disable one or more privileges in the CAccessToken object.

bool DisablePrivileges(
   const CAtlArray< LPCTSTR >& rPrivileges,
   CTokenPrivileges* pPreviousState = NULL
) throw(...);

Параметры

  • 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.

Возвращаемое значение

Returns true on success, false on failure.

Требования

Header: atlsecurity.h

См. также

Основные понятия

CAccessToken Class

CAccessToken Members

CAccessToken::DisablePrivilege

CAccessToken::EnablePrivileges