Initializes a newly created proxy and returns an interface pointer to that
| IStream * pStm,
||//Stream used for unmarshaling
| REFIID riid,
||//IID of interface pointer desired
| void ** ppv
||//Receives the interface pointer
[in]Points to the stream from which the interface pointer is to be unmarshaled.
[in]Specifies the IID of the interface pointer desired.
[out]Receives the interface pointer.
The interface pointer was unmarshaled successfully.
Indicates that the implementation failed.
The specified interface was not supported.
This method is called from the receiving side (that is; the side doing the
unmarshaling). This method is called on the proxy object itself; that is; the
object whose CLSID was returned by IMarshal::GetUnmarshalClass
Notes to Implementors
Your implementation should read the data written to the stream by your
implementation of IMarshal::MarshalInterface
and use that data to initialize the proxy object.
To return the appropriate interface pointer; your implementation can simply
on itself, passing the riid
parameters. However; your implementation is free to create a different object
and return a pointer to that object; if you find it necessary.
Just before exiting; your implementation should position the seek pointer in
the stream immediately after the last byte of data read. This should be done
even if the method exits with an error.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages