IStdMarshalInfo::GetClassForHandler method

Retrieves the CLSID of the object handler to be used in the destination process during standard marshaling.

Syntax

HRESULT GetClassForHandler(
  DWORD dwDestContext,
  void  *pvDestContext,
  CLSID *pClsid
);

Parameters

dwDestContext

The destination context, that is, the process in which the unmarshaling will be done. Possible values are taken from the enumeration MSHCTX.

pvDestContext

This parameter must be NULL.

pClsid

A pointer to the handler's CLSID.

Return Value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and S_OK.

Remarks

Notes to Implementers

Your implementation of IStdMarshalInfo::GetClassForHandler must return your own CLSID. This enables an object to be created by a different server.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h (include ObjIdl.h)

See Also

IStdMarshalInfo