IAppxEncryptionFactory3::CreateEncryptedBundleWriter method (appxpackaging.h)

Creates a write-only bundle object to which encrypted Windows app packages can be added.

Syntax

HRESULT CreateEncryptedBundleWriter(
  [in]          IStream                                *outputStream,
  [in]          UINT64                                 bundleVersion,
  [in]          const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings,
  [in]          const APPX_KEY_INFO                    *keyInfo,
  [in]          const APPX_ENCRYPTED_EXEMPTIONS        *exemptedFiles,
  [out, retval] IAppxEncryptedBundleWriter             **bundleWriter
);

Parameters

[in] outputStream

A writable stream for writing the resulting encrypted app bundle.

[in] bundleVersion

The version number of the bundle. If the bundle version is 0, a default version based on the current system time will be generated.

[in] settings

Settings for creating the package.

[in] keyInfo

Key info containing the base encryption key and key ID for decrypting the bundle. The base key is used to derive the per file encryption keys. If this parameter is null, the global test key and key ID are used.

[in] exemptedFiles

Files exempted from the bundle writer.

[out, retval] bundleWriter

The bundle writer object created.

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 appxpackaging.h

See also

IAppxEncryptionFactory3