Share via


IDeviceAccessPolicyCheck::DeviceInterfaceClassAccessCheckWithCallingThread method

[!Important]
These interfaces are not supported and should not be used. Use the APIs in the Device Access API C++ Programming Reference instead.

 

This API will determine if the token for the current context has access to the device interface class specified. IID = 7D276FF2-CE90-4275-A2A8-9A48B10D3E0B.

Syntax

HRESULT DeviceInterfaceClassAccessCheckWithCallingThread(
  [in] PCWSTR pszDeviceInterfaceClassGuid,
  [in] DWORD  dwClientThreadId
);

Parameters

pszDeviceInterfaceClassGuid [in]

Device interface class GUID for which access should be checked.

dwClientThreadId [in]

Client thread ID where any associated UI should be shown if necessary.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.