IAppxEncryptionFactory::DecryptPackage method (appxpackaging.h)

Creates an unencrypted Windows app package from an encrypted one.

Syntax

HRESULT DecryptPackage(
  IStream             *inputStream,
  IStream             *outputStream,
  const APPX_KEY_INFO *keyInfo
);

Parameters

inputStream

A readable stream from the app package to be decrypted.

outputStream

A writeable stream for writing the resulting decrypted app package.

keyInfo

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

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an error code.

Requirements

   
Minimum supported client Windows 10, version 1607 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxEncryptionFactory