Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.61 KB

ConnectionOpenInPartition.md

File metadata and controls

61 lines (40 loc) · 1.61 KB

ConnectionOpenInPartition function

Creates a new connection in a specific partition.

Syntax

typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
QUIC_STATUS
(QUIC_API * QUIC_CONNECTION_OPEN_IN_PARTITION_FN)(
    _In_ _Pre_defensive_ HQUIC Registration,
    _In_ uint16_t PartitionIndex,
    _In_ _Pre_defensive_ QUIC_CONNECTION_CALLBACK_HANDLER Handler,
    _In_opt_ void* Context,
    _Outptr_ _At_(*Connection, __drv_allocatesMem(Mem)) _Pre_defensive_
        HQUIC* Connection
    );

Parameters

Registration

The valid handle to an open registration object.

PartitionIndex

An index into the global partition set.

Handler

A pointer to the app's callback handler to be invoked for all connection events.

Context

The app context pointer (possibly null) to be associated with the connection object.

Connection

On success, returns a handle to the newly opened connection object.

Return Value

The function returns a QUIC_STATUS. The app may use QUIC_FAILED or QUIC_SUCCEEDED to determine if the function failed or succeeded.

Remarks

See ConnectionOpen for more remarks.

This function is the same as ConnectionOpen with the exception that this puts the connection in an explicit partition instead of inferring it based on the calling thread's current processor.

See Also

ConnectionOpen
ConnectionClose
ConnectionShutdown
ConnectionStart
QUIC_CONNECTION_CALLBACK
QUIC_CONNECTION_EVENT