|
|
Retrieve a marshaled interface pointer from a stream.
This function loads a serialised marshalled interface pointer from the given stream, queries for the interface of the given pointer, and returns the pointer if successful, and an error code if not. The stream is always released, irrespective of the success status of the function as a whole. - Parameters:
-
| pstm |
An IStream pointer from which object is to be unmarshaled |
| ppitf |
A pointer to the interface pointer to be unmarshaled |
- Returns:
-
An HRESULT indicating success or failure
- Return values:
-
| E_INVALIDARG |
The argument was invalid |
| S_OK |
The operation completed successfully |
|