FwpsCopyStreamDataToBuffer0 function (fwpsk.h)

The FwpsCopyStreamDataToBuffer0 function copies stream data to a buffer.

Note  FwpsCopyStreamDataToBuffer0 is a specific version of FwpsCopyStreamDataToBuffer. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.
 

Syntax

void FwpsCopyStreamDataToBuffer0(
  [in]      const FWPS_STREAM_DATA0 *calloutStreamData,
  [in, out] PVOID                   buffer,
  [in]      SIZE_T                  bytesToCopy,
  [out]     SIZE_T                  *bytesCopied
);

Parameters

[in] calloutStreamData

A pointer to a FWPS_STREAM_DATA0 structure that contains the stream data to be copied.

[in, out] buffer

A pointer to a location in memory that will store the copy of the stream data pointed to by the calloutStreamData parameter. The size of the buffer must be greater than or equal to bytesToCopy.

[in] bytesToCopy

The amount of data, in bytes, to be copied into the receiving buffer.

[out] bytesCopied

A pointer to a variable that receives the size, in bytes, of the stream data copied to the memory location pointed to by the buffer parameter.

Return value

None

Remarks

To copy all indicated data to the receiving buffer, ensure that the buffer is at least calloutStreamData -> DataLength in size.

Requirements

Requirement Value
Minimum supported client Available starting with Windows Vista.
Target Platform Universal
Header fwpsk.h (include Fwpsk.h)
Library Fwpkclnt.lib
IRQL <= DISPATCH_LEVEL

See also

FWPS_STREAM_DATA0