SrpGetEnterpriseIds function (srpapi.h)

Note  Windows Information Protection (WIP) policy cannot be applied on Windows 10, version 1511 (build 10586) or earlier.
 
Gets the list of enterprise identifiers for the given token.

The enterprise IDs are returned only for those applications explicitly allowed by management.

Syntax

HRESULT SrpGetEnterpriseIds(
  [in]                HANDLE tokenHandle,
  [in, out, optional] PULONG numberOfBytes,
  [out, optional]     PCWSTR *enterpriseIds,
  [out]               PULONG enterpriseIdCount
);

Parameters

[in] tokenHandle

Token Handle to be checked.

[in, out, optional] numberOfBytes

If enterpriseIds is provided, then this supplies the size of the enterpriseIds buffer. If you provide a buffer size, and it's too small, the output will contain the required size of the enterpriseIds buffer.

[out, optional] enterpriseIds

An array of enterprise ID string pointers.

[out] enterpriseIdCount

The enterprise ID count on the token. Zero if the token is not explicitly enterprise allowed.

Return value

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

If this function does not provide any enterprise IDs, it returns E_NOT_SUFFICIENT_BUFFER.

Requirements

   
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header srpapi.h
Library Srpapi.lib
DLL Srpapi.dll