UfxEndpointInitSetEventCallbacks function (ufxclient.h)
Initialize a UFXENDPOINT_INIT structure.
Syntax
void UfxEndpointInitSetEventCallbacks(
[in, out] PUFXENDPOINT_INIT EndpointInit,
[in] PUFX_ENDPOINT_CALLBACKS Callbacks
);
Parameters
[in, out] EndpointInit
Opaque structure passed by UFX in the call to EVT_UFX_DEVICE_ENDPOINT_ADD or EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD.
[in] Callbacks
Pointer to a UFX_ENDPOINT_CALLBACKS structure.
Return value
None
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
Requirement | Value |
---|---|
Minimum supported client | Windows 10 |
Target Platform | Windows |
Header | ufxclient.h |
Library | ufxstub.lib |
IRQL | PASSIVE_LEVEL |