IMFContentProtectionDevice::GetPrivateDataByteCount method

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 decrytor moves the data to the security processor.

Syntax


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

Parameters

PrivateInputByteCount [out]

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

PrivateOutputByteCount [out]

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

Minimum supported client

Windows 10 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Mfidl.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

IMFContentProtectionDevice
InvokeFunction

 

 

Show: