|
IMarshal::DisconnectObject
Severs remote connections (that is, connections from other processes) being
maintained on behalf of any interface pointers on the current object.
HRESULT IMarshal::DisconnectObject(
DWORD dwReserved
| //Reserved for future use
| );
|
|
Parameter
dwReserved
[in] Reserved for future use; must be set to zero by the caller. To ensure
compatibility with future use, the callee must not check for zero.
Return Values
S_OK
The object was disconnected successfully.
E_FAIL
Indicates an unspecified error.
E_OUTOFMEMORY
Out of memory.
E_INVALIDARG
One or more arguments were invalid.
E_UNEXPECTED
An unexpected error occured.
Comments
This method is called from the originating side (that is, the side doing the
marshaling).
This method is called by the CoDisconnectObject API function if the object being disconnected implements the IMarshal interface. This is analogous to the way the CoMarshalInterface API function defers to the IMarshal::MarshalInterface method if the object supports IMarshal.
Notes to Implementors
If you are doing custom marshaling of immutable objects, your implementation
doesn't need to do anything because there are no remote connections.
See Also
CoDisconnectObject
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|