Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This 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

[in] Destination context, that is, the process in which the unmarshaling will be done. The legal values for dwDestContextare taken from the enumeration MSHCTX.

pvDestContext

[in] Reserved for future use; must be NULL.

pClsid

[out] Pointer to the handler's CLSID.

Return Value

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

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Notes to Implementers

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

Requirements

Header objidl.h, objidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IStdMarshalInfo