Export (0) Print
Expand All

IStdMarshalInfo::GetClassForHandler method

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

dwDestContext [in]

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

pvDestContext [in]

This parameter must be NULL.

pClsid [out]

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]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IStdMarshalInfo is defined as 00000018-0000-0000-C000-000000000046

See also

IStdMarshalInfo

 

 

Community Additions

ADD
Show:
© 2014 Microsoft