IMFContentProtectionDevice::GetPrivateDataByteCount method (mfidl.h)

Gets the required number of bytes that need to be prepended to
the input and output buffers when you call the security processor through the InvokeFunction method.
When you specify this number of bytes, the Media Foundation transform (MFT) decryptor can allocate the total amount of bytes and can avoid making copies of the data when the decryptor moves the data to the security processor.

Syntax

HRESULT GetPrivateDataByteCount(
  [out] DWORD *PrivateInputByteCount,
  [out] DWORD *PrivateOutputByteCount
);

Parameters

[out] PrivateInputByteCount

The required number of bytes that need to be prepended to
the input buffer that you supply to content protection system.

[out] PrivateOutputByteCount

The required number of bytes that need to be prepended to
the output buffer that you supply to content protection system.

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 mfidl.h
Library Mfplat.lib
DLL Mfplat.dll

See also

IMFContentProtectionDevice

InvokeFunction