Compartir a través de


función WDF_REQUEST_PARAMETERS_INIT (wdfrequest.h)

[Se aplica a KMDF y UMDF]

La función WDF_REQUEST_PARAMETERS_INIT inicializa una estructura de WDF_REQUEST_PARAMETERS .

Sintaxis

void WDF_REQUEST_PARAMETERS_INIT(
  [out] PWDF_REQUEST_PARAMETERS Parameters
);

Parámetros

[out] Parameters

Puntero a una estructura de WDF_REQUEST_PARAMETERS proporcionada por el autor de la llamada.

Valor devuelto

None

Observaciones

Los controladores deben llamar a WDF_REQUEST_PARAMETERS_INIT para inicializar una estructura de WDF_REQUEST_PARAMETERS antes de llamar a WdfRequestGetParameters.

La función WDF_REQUEST_PARAMETERS_INIT cero la estructura de WDF_REQUEST_PARAMETERS especificada y establece el miembro Size de la estructura.

Ejemplos

En el ejemplo de código siguiente se inicializa una estructura de WDF_REQUEST_PARAMETERS y, a continuación, se llama a WdfRequestGetParameters.

VOID
MyEvtIoDefault(
    IN WDFQUEUE  Queue,
    IN WDFREQUEST  Request
    )
{
    WDF_REQUEST_PARAMETERS  params;

    WDF_REQUEST_PARAMETERS_INIT(&params);

    WdfRequestGetParameters(
                            Request,
                            &params
                            );
...
}

Requisitos

Requisito Value
Plataforma de destino Universal
Versión mínima de KMDF 1.0
Versión mínima de UMDF 2.0
Encabezado wdfrequest.h (incluya Wdf.h)

Consulte también

WDF_REQUEST_PARAMETERS

WdfRequestGetParameters