Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
3/12/2014
This method creates an IStream object from a file on the device.
Syntax
HRESULT CreateStreamOnFile (
BSTR bstrFile,
BOOL fRead,
IStream **pStream
);
Parameters
- bstrFile
[in] File on which the stream is created.
- fRead
[in] True if the file is open for reading, otherwise false.
- pStream
[out] IStream object that is created.
Return Values
Returns the HRESULT values shown in the following table.
| Return code | Description |
|---|---|
S_OK |
The method was successful. |
E_INVALIDARG |
One or more parameters are invalid. |
E_FAIL |
The method was not successful. |
E_MEMORY |
An out of memory error occurred. |
Requirements
Header |
mlibdll.h, |
Library |
mlibdll.lib |