IViewObjectPresentFlipSite::GetDeviceLuid method

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


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


  • pLuid [out, retval]

Return value

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


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.


Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016


Mshtml.dll; Edgehtml.dll