Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetaDataImport::EnumPermissionSets method

Enumerates permissions for the objects in a specified metadata scope.

Syntax


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

Parameters

phEnum [in, out]

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

tk [in]

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

dwActions [in]

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

rPermission [out]

The array used to store the Permission tokens.

cMax [in]

The maximum size of the rPermission array.

pcTokens [out]

The number of Permission tokens returned in rPermission.

Return value

HRESULTDescription
S_OKEnumPermissionSets returned successfully.
S_FALSEThere are no tokens to enumerate. In this case, pcTokens is 0 (zero).

 

Requirements

IDL

Rometadataapi.idl

See also

IMetaDataImport

 

 

Show: