WldpQueryDynamicCodeTrust function

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 WINAPI WldpQueryDynamicCodeTrust(
   _When_(baseImage != NULL, _In_opt_)
    _When_(baseImage == NULL, _In_)
    HANDLE                                                 fileHandle,
   _When_(fileHandle == NULL, _In_reads_bytes_opt_(imageSize))
    _When_(fileHandle != NULL, _In_reads_bytes_(imageSize))
    PVOID  baseImage,
   _In_ 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

Minimum supported client
Windows 10 [desktop apps only]
Minimum supported server
Windows Server 2016 [desktop apps only]
Header
Wldp.h
DLL
Wldp.dll