WldpIsDynamicCodePolicyEnabled function (wldp.h)

Retrieves a value that describes the Device Guard policy enforcement status for .NET dynamic code.

Syntax

HRESULT WldpIsDynamicCodePolicyEnabled(
  PBOOL isEnabled
);

Parameters

isEnabled

On success, returns true if the Device Guard policy enforces .NET Dynamic Code policy; otherwise, returns false.

Return value

This method returns S_OK if successful or a failure code otherwise.

Remarks

Dynamic code refers to .NET CRL dynamically-generated code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803
Minimum supported server Windows Server 2016
Header wldp.h
Library wldp.lib
DLL wldp.dll