WldpQueryDynamicCodeTrust function (wldp.h)

Retrieves a value that determines if the specified in-memory or on-disk .NET CRL dynamic code is trusted by Device Guard policy.

Syntax

HRESULT WldpQueryDynamicCodeTrust(
  HANDLE fileHandle,
  PVOID  baseImage,
  ULONG  imageSize
);

Parameters

fileHandle

Handle to the on-disk dynamic code file to check. If fileHandle is non-NULL, baseImage should be NULL.

baseImage

Pointer to the in-memory PE file to check. If baseImage is non-NULL, FileHandle should be NULL.

imageSize

When baseImage is non-NULL, indicates the buffer size that baseImage points to.

Return value

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

Requirements

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