IAccessControl::GetAllAccessRights method (iaccess.h)
Gets the entire list of access rights and/or the owner and group for the specified object.
Syntax
HRESULT GetAllAccessRights(
[in] LPWSTR lpProperty,
[out] PACTRL_ACCESSW_ALLOCATE_ALL_NODES *ppAccessList,
[out] PTRUSTEEW *ppOwner,
[out] PTRUSTEEW *ppGroup
);
Parameters
[in] lpProperty
The name of the property. If you are using the COM implementation of IAccessControl, this parameter must be NULL.
[out] ppAccessList
The address of the pointer variable that receives a pointer to the access list structure. This parameter cannot be ACTRL_ACCESS.
If the call succeeds, the caller must free the allocated memory with the CoTaskMemFree function. Note that the memory is allocate(all_nodes), which means that all the substructures are allocated in one block. Therefore, the entire data structure must be freed by a single call to CoTaskMemFree.
[out] ppOwner
A pointer to a TRUSTEE structure that receives the owner information. If this parameter is not NULL and the function succeeds, the caller must free the memory with CoTaskMemFree.
[out] ppGroup
A pointer to a TRUSTEE structure that receives the group information. If this parameter is not NULL and the function succeeds, the caller must free the memory with CoTaskMemFree.
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 |