IRandomAccessStreamFileAccessMode::GetMode method (windowsstoragecom.h)
Retrieves the file access mode that was used when the StorageFile.OpenAsync method was called to open the random-access byte stream.
Syntax
HRESULT GetMode(
[out] DWORD *fileAccessMode
);
Parameters
[out] fileAccessMode
The file access mode that was used when the StorageFile.OpenAsync method was called to open the random-access byte stream. Cast this value as a Windows::Storage::FileAccessMode enumeration value.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | windowsstoragecom.h |
DLL | Windows.storage.dll |