Edit

SrpGetEnterprisePolicy function (srpapi.h)

Note  Windows Information Protection (WIP) policy can be applied on Windows 10, version 1607.
 
Gets information about the enterprise policy of an app.

Syntax

HRESULT SrpGetEnterprisePolicy(
  [in]  HANDLE                   tokenHandle,
  [out] ENTERPRISE_DATA_POLICIES *policyFlags
);

Parameters

[in] tokenHandle

Token Handle to be checked.

[out] policyFlags

A collection of flags that indicate among other things whether the host app is allowed by the managing enterprise policy, and has been enlightened for Windows Information Protection.

Return value

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

Requirements

Requirement Value
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