IAccessControl::SetAccessRights method (iaccess.h)

Replaces the existing access rights on an object with the specified list.

Syntax

HRESULT SetAccessRights(
  [in] PACTRL_ACCESSW pAccessList
);

Parameters

[in] pAccessList

A pointer to the ACTRL_ACCESS list that contains an array of access lists to be written to the object.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header iaccess.h

See also

IAccessControl