FwpsCopyStreamDataToBuffer0 function

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(
  const FWPS_STREAM_DATA0 *calloutStreamData,
  PVOID                   buffer,
  SIZE_T                  bytesToCopy,
  SIZE_T                  *bytesCopied
);

Parameters

calloutStreamData

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

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.

bytesToCopy

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

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

   
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