Retrieves the CLSID of the object handler to be used in the destination process during standard marshaling.
HRESULT GetClassForHandler(
DWORD dwDestContext, |
//Destination process |
void * pvDestContext, |
//Reserved |
CLSID * pClsid |
//Pointer to the CLSID |
); |
Parameters
Return Values
This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
Remarks
Your implementation of IStdMarshalInfo::GetClassForHandler must return your own CLSID. This allows an object created by a different server to behave as one your server created.