The FwpsQueryConnectionSioFormatRedirectRecords0 function returns the connection redirect records for a redirected connection. For more information about redirection, see Using Bind or Connect Redirection.
NTSTATUS FwpsQueryConnectionSioFormatRedirectRecords0( HANDLE RedirectRecords, PVOID OutputBuffer, SIZE_T OutputBufferLength, PSIZE_T BytesTransferred );
The redirect records handle that the ALE_CONNECT_REDIRECT callout function received in the inMetaValues parameter of its classifyFn function. This handle can be found in the redirectRecords member of the FWPS_INCOMING_METADATA_VALUES0 structure.
A WFP redirect record is a buffer of opaque data that WFP must set on an outbound proxy connection so that the redirected connection and the original connection are logically related.
A pointer to an output buffer that receives the redirect records. The buffer must be pointer-aligned.
The size, in bytes, of the output buffer.
A pointer to a variable that receives the number of bytes that were transferred. If the return value is STATUS_BUFFER_TOO_SMALL, this parameter receives the required buffer size.
Returns an NTSTATUS value such as one of the following.
||The output buffer was too small to contain all of the bytes to be transferred. The data transfer failed, and the required buffer size can be found in the BytesTransferred parameter.|
||The RedirectRecords parameter was null.|
The FwpsQueryConnectionSioFormatRedirectRecords0 function applies only to local proxies.
For more information about redirection, see Using Bind or Connect Redirection.
The FwpsQueryConnectionSioFormatRedirectRecords0 function is designed to be used by a WFP connection redirection callout driver that doesn't accept the redirected connection until it has verified that it is able to connect to the actual remote endpoint. To do this, the callout driver pends the redirected connection request at the FWPS_LAYER_ALE_CONNECT_REDIRECT_V4 or FWPS_LAYER_ALE_CONNECT_REDIRECT_V6 layer and calls FwpsQueryConnectionSioFormatRedirectRecords0 to retrieve the connection redirect records, which the callout driver then sends to the proxy to be used in a call to SIO_SET_WFP_CONNECTION_REDIRECT_RECORDS.
|Minimum supported client||Windows 7|
|Minimum supported server||Windows Server 2008 R2|
|Header||fwpsk.h (include Fwpsk.h)|