SrpEnablePermissiveModeFileEncryption function (srpapi.h)

Note  Windows Information Protection (WIP) policy can be applied on Windows 10, version 1607.
 
Enables permissive mode for file encryption on the current thread and all threads this thread will create or post work to.

Use SrpDisablePermissiveModeFileEncryption to disable the mode.

This API does not attempt to handle nested calls by reference counting or such. Subsequent calls to SrpEnablePermissiveModeFileEncryption after the first successful call to this API will not have any effect.

Syntax

HRESULT SrpEnablePermissiveModeFileEncryption(
  PCWSTR enterpriseId
);

Parameters

enterpriseId

Contains enterprise ID string. In TH2 this is not used.

Return value

If this function succeeds, it returns S_OK.

HRESULT_FROM_WIN32 (ERROR_INVALID_STATE) indicates that thread tagging cannot be performed due to either process or thread context.

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