FUNCTION_LEVEL_DEVICE_RESET_PARAMETERS structure (wdm.h)

The FUNCTION_LEVEL_DEVICE_RESET_PARAMETER structure is used as an argument to the DeviceReset routine of the GUID_DEVICE_RESET_INTERFACE_STANDARD interface. This structure specifies a callback routine that is called when a function-level device reset is completed, and a context structure that is passed to the callback routine. For more information, see Working with the GUID_DEVICE_RESET_INTERFACE_STANDARD

Syntax

typedef struct _FUNCTION_LEVEL_DEVICE_RESET_PARAMETERS {
  ULONG                    Size;
  PDEVICE_RESET_COMPLETION DeviceResetCompletion;
  PVOID                    CompletionContext;
} FUNCTION_LEVEL_DEVICE_RESET_PARAMETERS, *PFUNCTION_LEVEL_DEVICE_RESET_PARAMETERS;

Members

Size

The size, in bytes, of this structure.

DeviceResetCompletion

Pointer to a completion callback routine to be called when a function-level device reset is completed. The callback must enter and exit at the same IRQL.

The function prototype for this callback routine is defined as follows:

typedef
VOID
(*PDEVICE_RESET_COMPLETION)(
    _In_ NTSTATUS Status,
    _Inout_opt_ PVOID Context
    );

CompletionContext

Points to a caller-supplied context structure to be passed to the DeviceResetCompletion callback.

Requirements

Requirement Value
Header wdm.h (include Wdm.h)

See also

DEVICE_RESET_INTERFACE_STANDARD

DeviceReset

Working with the GUID_DEVICE_RESET_INTERFACE_STANDARD