IAppxEncryptedPackageWriter2::AddPayloadFilesEncrypted method (appxpackaging.h)

Adds one or more payload files to an encrypted app package.

Syntax

HRESULT AddPayloadFilesEncrypted(
  [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 encrypted 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

IAppxEncryptedPackageWriter2