IMFContentProtectionDevice::InvokeFunction method (mfidl.h)

Calls into the implementation of the protection system in the security processor.

Syntax

HRESULT InvokeFunction(
  [in]      DWORD      FunctionId,
  [in]      DWORD      InputBufferByteCount,
  [in]      const BYTE *InputBuffer,
  [in, out] DWORD      *OutputBufferByteCount,
  [out]     BYTE       *OutputBuffer
);

Parameters

[in] FunctionId

The identifier of the function that you want to run. This identifier is defined by the implementation of the protection system.

[in] InputBufferByteCount

The number of bytes of in the buffer that InputBuffer specifies, including private data.

[in] InputBuffer

A pointer to the data that you want to provide as input.

[in, out] OutputBufferByteCount

Pointer to a value that specifies the length in bytes of the data that the function wrote to the buffer that OutputBuffer specifies, including the private data.

[out] OutputBuffer

Pointer to the buffer where you want the function to write its output.

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