IStdMarshalInfo::GetClassForHandler

This method retrieves the CLSID of the object handler to be used in the destination process during standard marshaling.

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

Parameters

  • dwDestContext
    [in] Destination context, that is, the process in which the unmarshaling will be done. The legal values for dwDestContext are taken from the enumeration MSHCTX. For information on the MSHCTX enumeration, see the "Data Structures" section.
  • pvDestContext
    [in] Reserved for future use; must be NULL.
  • pClsid
    [out] Pointer to the handler's CLSID.

Return Values

This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:

  • S_OK
    The CLSID was retrieved successfully.

Remarks

Notes to Implementers

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

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 3.0 and later Objidl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.