UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:shcore.CreateRandomAccessStreamOnFile |
CreateRandomAccessStreamOnFile function (shcore.h) |
Creates a Windows Runtime random access stream for a file. |
|
winrt\createrandomaccessstreamonfile.htm |
WinRT |
6D3D2B25-7373-4BA5-BF6B-FB461C2DE982 |
12/05/2018 |
CreateRandomAccessStreamOnFile, CreateRandomAccessStreamOnFile function [Windows Runtime], shcore/CreateRandomAccessStreamOnFile, winrt.createrandomaccessstreamonfile |
shcore.h |
Windows |
Windows 8 [desktop apps \| UWP apps] |
Windows Server 2012 [desktop apps \| UWP apps] |
Shcore.lib |
Shcore.dll |
Windows |
19H1 |
|
|
|
|
|
|
Creates a Windows Runtime random access stream for a file.
The fully qualified path of the file to encapsulate.
An AccessMode value that specifies the behavior of the RandomAccessStream that encapsulates the file.
A reference to the IID of the interface to retrieve through ppv, typically IID_RandomAccessStream.
When this method returns successfully, contains the interface pointer requested in riid, typically the IRandomAccessStream that encapsulates the file.
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Use the CreateRandomAccessStreamOnFile function to create a RandomAccessStream that encapsulates a file.
We recommend that you use the IID_PPV_ARGS macro, defined in Objbase.h, to package the riid and ppv parameters. This macro provides the correct IID based on the interface pointed to by the value in ppv, which eliminates the possibility of a coding error in riid that could lead to unexpected results.
CreateRandomAccessStreamOverStream