FtmBase::GetUnmarshalClass Method


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Gets the CLSID that COM uses to locate the DLL containing the code for the corresponding proxy. COM loads this DLL to create an uninitialized instance of the proxy.

STDMETHODIMP GetUnmarshalClass(  
   __in REFIID riid,  
   __in_opt void *pv,  
   __in DWORD dwDestContext,  
   __reserved void *pvDestContext,  
   __in DWORD mshlflags,  
   __out CLSID *pCid  
) override;  


Reference to the identifier of the interface to be marshaled.

Pointer to the interface to be marshaled; can be NULL if the caller does not have a pointer to the desired interface.

Destination context where the specified interface is to be unmarshaled.

Specify one or more MSHCTX enumeration values.

Unmarshaling can occur either in another apartment of the current process (MSHCTX_INPROC) or in another process on the same computer as the current process (MSHCTX_LOCAL).

Reserved for future use; must be NULL.

When this operation completes, pointer to the CLSID to be used to create a proxy in the client process.


S_OK if successful; otherwise, S_FALSE.

Header: ftm.h

Namespace: Microsoft::WRL

FtmBase Class