Compartilhar via


IAppxEncryptedFile::GetKeyContext method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Gets the key context of the file, which is used to initialize the encryption engine to decrypt the file.

Syntax

HRESULT GetKeyContext(
  [out]                                     UINT32 *keyContextSize,
  [out, size_is(, *keyContextSize), retval] BYTE   **keyContext
);

Parameters

  • keyContextSize [out]
    The size of the key context buffer.

  • keyContext [out, retval]
    The key context buffer containing the key context.

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]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

See also

IAppxEncryptedFile