| Argument | Type | Description |
| pstm | IStream * | The stream onto which the object should be marshaled. |
| iid | REFIID | The interface of this object that we want to marshal. |
| pvInterface | void * | The actual pointer that will be marshaled. May be NULL. |
| dwDestContext | DWORD | As in CoMarshalInterface(). |
| pvDestContext | void * | As in CoMarshalInterface(). |
| mshlflags | DWORD | As in CoMarshalInterface(). |
| return value | HRESULT | S_OK, E_FAIL, E_NOINTERFACE, STG_E_MEDIUMFULL, E_UNEXPECTED |