Compartir a través de


CTokenPrivileges::Delete

Deletes a privilege from the CTokenPrivileges access token object.

bool Delete(
   LPCTSTR pszPrivilege 
) throw( );

Parameters

  • pszPrivilege
    Pointer to a null-terminated string that specifies the name of the privilege, as defined in the WINNT.H header file. For example, this parameter could specify the constant SE_SECURITY_NAME, or its corresponding string, "SeSecurityPrivilege."

Return Value

Returns true if the privilege was successfully deleted, false otherwise.

Remarks

This method is useful as a tool for creating restricted tokens under Windows 2000.

Requirements

Header: atlsecurity.h

See Also

Reference

CTokenPrivileges Class

CTokenPrivileges::DeleteAll

CTokenPrivileges::Add

CAccessToken::CreateRestrictedToken

Other Resources

CTokenPrivileges Members