IAppxBlockMapBlock::GetHash method (appxpackaging.h)

Retrieves the hash value of the block.

Syntax

HRESULT GetHash(
  [out]         UINT32 *bufferSize,
  [out, retval] BYTE   **buffer
);

Parameters

[out] bufferSize

Type: UINT32*

The length of buffer.

[out, retval] buffer

Type: BYTE**

The byte sequence representing the hash value of the block.

Return value

Type: HRESULT

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

Remarks

The buffer value corresponds to the Hash attribute of the Block element.

The caller is responsible for deallocating the memory used for buffer. Use the CoTaskMemFree function to deallocate the memory.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxBlockMapBlock