WlpdIsClassInApprovedList function

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 WINAPI WldpIsClassInApprovedList(
        REFCLSID               classID,
  _In_  PWLDP_HOST_INFORMATION hostInformation,
  _Out_ PBOOL                  isApproved,
        DWORD                  optionalFlags
);

Parameters

classID

The COM class ID to check for approval.

hostInformation [in]

A WLDP_HOST_INFORMATION structure identifying the host to be evaluated.

isApproved [out]

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

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