Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Creates an instance of IAppxPackageReader for reading the contents of a bundle's payload file.
Syntax
HRESULT GetPayloadPackageReader(
[in] LPCWSTR fileName,
[out] IAppxPackageReader **payloadPackageReader
);
Parameters
[in] fileName
An LPCWSTR containing the file name of the package to read.
[out] payloadPackageReader
Receives the created IAppxPackageReader instance.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an error code that includes, but is not limited to, those in the following table.
| Return code | Description |
|---|---|
| HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) | There is no package file with the specified file name. |
| E_POINTER | The fileName or payloadPackageReader param is NULL. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 11 version 26100 |
| Minimum supported server | Windows Server 2025 |
| Header | appxpackaging.h |