WldpIsClassInApprovedList function (wldp.h)

Calls the library to validate if a particular CLSID is safe to be called. The function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to wldp.dll.

Syntax

HRESULT WldpIsClassInApprovedList(
  REFCLSID               classID,
  PWLDP_HOST_INFORMATION hostInformation,
  PBOOL                  isApproved,
  DWORD                  optionalFlags
);

Parameters

classID

The COM class ID to check for approval.

hostInformation

A WLDP_HOST_INFORMATION structure identifying the host to be evaluated.

isApproved

On successful completion, contains TRUE if the class ID is approved; otherwise, FALSE.

optionalFlags

This parameter is reserved and must be set to zero.

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