Partager via


IViewObjectPresentFlipSite::GetDeviceLuid method

Obtains the locally unique identifier (LUID) of the D3D adapter that Internet Explorer is currently using.

Syntax

HRESULT GetDeviceLuid(
  [out, retval] LUID* *pLuid
);

Parameters

  • pLuid [out, retval]

Return value

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

Remarks

This can be used with the DXGI APIs to determine which adapter to create to make a device pointer to give to CreateSurfacePresenterFlip.

It is important to use this method because MSHTML can decide to not use the hardware in the system if there are driver issues. In order to share surfaces in some scenarios, the ActiveX control's Direct3D device and the MSHTML Direct3D device must be from the same adapter.

Requirements

Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016

DLL

Mshtml.dll; Edgehtml.dll