IAccessControl::RevokeAccessRights method
Removes any explicit entries for the list of trustees.
Syntax
HRESULT RevokeAccessRights( [in] LPWSTR lpProperty, [in] ULONG cTrustees, [in] TRUSTEEW prgTrustees[] );
Parameters
- lpProperty [in]
-
The name of the property. If you are using the COM implementation of IAccessControl, this parameter must be NULL.
- cTrustees [in]
-
The number of trustees in the list. This parameter cannot be 0.
- prgTrustees [in]
-
A pointer to an array of trustee names. See TRUSTEE.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Even after removing explicit entries, the trustees might still have access entries due to group inclusion.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IAccessControl is defined as EEDD23E0-8410-11CE-A1C3-08002B2B8D8F |
See also