Edit

Share via


EdpGetPrimaryIdentities function

Note

Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.

For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.

In the presence of WIP policy, get the WIP primary identities for all users on the device.

Syntax

HRESULT
EdpGetPrimaryIdentities(
    _Outptr_result_buffer_(*NumIdentities) PWSTR **Identities,
    _Out_ DWORD *NumIdentities
    );

Parameters

Identities

Returned list of identities.

NumIdentities

Returned count of identities in Identities.

Return value

An HRESULT value.

Remarks

The retrieved identities are the primary internet domains (such as contoso.com) that identify and tag enterprise data.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows 10
Header None
DLL edputil.dll