Microsoft SDK for Java

MarshalInterface

This method of the IMarshal interface writes into a stream the data required to initialize a proxy object in some client process.

Syntax

public void MarshalInterface(IStream pStm, _Guid riid, IUnknown pv, int dwDestContext, int pvDestContext, int mshlflags);

Parameters

[in] pStm The pointer to the stream to be used during marshaling.
[in] riid The reference to the identifier of the interface to be marshaled. This interface must be derived from the IUnknown interface.
[in] pv The pointer to the interface to be marshaled; can be NULL if the caller does not have a pointer to the desired interface.
[in] dwDestContext The destination context where the specified interface is to be unmarshaled. Values for dwDestContext come from the enumeration MSHCTX. Currently, unmarshaling can occur either in another apartment of the current process (MSHCTX_INPROC) or in another process on the same computer as the current process (MSHCTX_LOCAL).
[in] pvDestContext Reserved for future use; must be NULL.
[in] mshlflags Specifies whether the data to be marshaled is to be transmitted back to the client process (the normal case) or written to a global table, where it can be retrieved by multiple clients. Valid values come from the MSHLFLAGS enumeration.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.