IAppxPackageWriter3::AddPayloadFiles method (appxpackaging.h)

Adds one or more payload files to an app package.

Syntax

HRESULT AddPayloadFiles(
  [in] UINT32                             fileCount,
  [in] APPX_PACKAGE_WRITER_PAYLOAD_STREAM *payloadFiles,
  [in] UINT64                             memoryLimit
);

Parameters

[in] fileCount

The number of payload files to be added to the app package.

[in] payloadFiles

The payload files to be added.

[in] memoryLimit

The memory limit in bytes.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an 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 appxpackaging.h

See also

IAppxPackageWriter3