Previous | Next |
The Open method opens the associated object and prepares it for other operations.
Syntax
HRESULT Open(
UINT fuMode
);
Parameters
fuMode
[in] Mode of operation in which the file must be opened.
Query | Description |
MDSP_READ | Query whether a subsequent call to Read would be allowed. |
MDSP_WRITE | Query whether a subsequent call to Insert would be allowed. |
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Description |
WMDM_E_NOTSUPPORTED | The operation is not supported by the medium |
WMDM_E_BUSY | The media device is busy. |
E_INVALIDARG | The fuMode parameter is an invalid or NULL pointer. |
WMDM_E_INTERFACEDEAD | The file or folder was previously deleted. |
E_FAIL | An unspecified error occurred. |
See Also
Previous | Next |