IWRdsWddmIddProps::OnDriverLoad method (wtsprotocol.h)

Termsrv uses this method to return a handle of the loaded WDDM ID driver to the protocol stack. From this point the stack owns the handle and needs to call CloseHandle() after communication with the driver is no longer needed.


HRESULT OnDriverLoad(
  [in] ULONG      SessionId,
  [in] HANDLE_PTR DriverHandle


[in] SessionId

ID of the session that the driver is loaded for.

[in] DriverHandle

Opened handle of the WDDM ID driver.

Return value

S_OK or error code


Target Platform Windows
Header wtsprotocol.h

See also