IMetaDataImport::EnumPermissionSets method (rometadataapi.h)

Enumerates permissions for the objects in a specified metadata scope.

Syntax

HRESULT EnumPermissionSets(
  [in, out] HCORENUM        *phEnum,
  [in]      mdToken         tk,
  [in]      DWORD           dwActions,
  [out]     mdPermission [] rPermission,
  [in]      ULONG           cMax,
  [out]     ULONG           *pcTokens
);

Parameters

[in, out] phEnum

A pointer to the enumerator. This must be NULL for the first call of this method.

[in] tk

A metadata token that limits the scope of the search, or NULL to search the widest scope possible.

[in] dwActions

Flags representing the SecurityAction values to include in rPermission, or zero to return all actions.

[out] rPermission

The array used to store the Permission tokens.

[in] cMax

The maximum size of the rPermission array.

[out] pcTokens

The number of Permission tokens returned in rPermission.

Return value

HRESULT Description
S_OK EnumPermissionSets returned successfully.
S_FALSE There are no tokens to enumerate. In this case, pcTokens is 0 (zero).

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataImport