IWRdsWddmIddProps::OnDriverUnload method (wtsprotocol.h)
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Termsrv uses this method to tell the protocol stack that PnP unloaded the WDDM ID driver.
HRESULT OnDriverUnload( ULONG SessionId );
ID of a session driver is unloaded from.
Returns S_OK or error code