// fwpsk.h
void FwpsCopyStreamDataToBuffer0(
[in] const FWPS_STREAM_DATA0 *calloutStreamData,
[in, out] PVOID buffer,
[in] SIZE_T bytesToCopy,
[out] SIZE_T *bytesCopied
);
View the official Windows Driver Kit DDI referenceNo description available.
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.
calloutStreamData [in]A pointer to a FWPS_STREAM_DATA0 structure that contains the stream data to be copied.
buffer [in, out]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 [in]The amount of data, in bytes, to be copied into the receiving buffer.
bytesCopied [out]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.
To copy all indicated data to the receiving buffer, ensure that the buffer is at least calloutStreamData -> DataLength in size.