UfxEndpointInitSetEventCallbacks function

Initialize a UFXENDPOINT_INIT structure.

Syntax

void UfxEndpointInitSetEventCallbacks(
  PUFXENDPOINT_INIT       EndpointInit,
  PUFX_ENDPOINT_CALLBACKS Callbacks
);

Parameters

EndpointInit

Opaque structure passed by UFX in the call to EVT_UFX_DEVICE_ENDPOINT_ADD or EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD.

Callbacks

Pointer to a UFX_ENDPOINT_CALLBACKS structure.

Return Value

This method does not return a value.

Remarks

The client driver calls UfxEndpointCreate from its EVT_UFX_DEVICE_ENDPOINT_ADD or EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD event callback function in order to create a new endpoint.

The client driver first calls UFX_ENDPOINT_CALLBACKS_INIT to initialize a UFX_ENDPOINT_CALLBACKS structure. Then it calls UfxEndpointCreate with the initialized UFX_ENDPOINT_CALLBACKS structure.

For an code example that shows how to create a UFXENDPOINT object and initialize its context, see the Remarks section of UfxEndpointCreate.

Requirements

   
Minimum supported client Windows 10
Target Platform Windows
Header ufxclient.h
Library ufxstub.lib
IRQL PASSIVE_LEVEL