IAccessControl::GetAllAccessRights method

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

lpProperty [in]

The name of the property. If you are using the COM implementation of IAccessControl, this parameter must be NULL.

ppAccessList [out]

The address of the pointer variable that receives a pointer to the access list structure. This parameter cannot be NULL. For more information, see 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.

ppOwner [out]

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.

ppGroup [out]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

IAccess.h

IDL

IAccess.idl

IID

IID_IAccessControl is defined as EEDD23E0-8410-11CE-A1C3-08002B2B8D8F

See also

ACTRL_ACCESS
IAccessControl

 

 

Show: