IStdMarshalInfo::GetClassForHandler method (objidl.h)

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

Syntax

HRESULT GetClassForHandler(
  [in]  DWORD dwDestContext,
  [in]  void  *pvDestContext,
  [out] CLSID *pClsid
);

Parameters

[in] dwDestContext

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

[in] pvDestContext

This parameter must be NULL.

[out] 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

Requirement Value
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