Bagikan melalui


struktur WDF_REQUEST_PARAMETERS (wdfrequest.h)

[Berlaku untuk KMDF dan UMDF]

Struktur WDF_REQUEST_PARAMETERS menerima parameter yang terkait dengan permintaan I/O.

Sintaks

typedef struct _WDF_REQUEST_PARAMETERS {
  USHORT           Size;
  UCHAR            MinorFunction;
  WDF_REQUEST_TYPE Type;
  union {
    struct {
      PIO_SECURITY_CONTEXT     SecurityContext;
      ULONG                    Options;
      USHORT POINTER_ALIGNMENT FileAttributes;
      USHORT                   ShareAccess;
      ULONG POINTER_ALIGNMENT  EaLength;
    } Create;
    struct {
      size_t                  Length;
      ULONG POINTER_ALIGNMENT Key;
      LONGLONG                DeviceOffset;
    } Read;
    struct {
      size_t                  Length;
      ULONG POINTER_ALIGNMENT Key;
      LONGLONG                DeviceOffset;
    } Write;
    struct {
      size_t                   OutputBufferLength;
      size_t POINTER_ALIGNMENT InputBufferLength;
      ULONG POINTER_ALIGNMENT  IoControlCode;
      PVOID                    Type3InputBuffer;
    } DeviceIoControl;
    struct {
      PVOID                   Arg1;
      PVOID                   Arg2;
      ULONG POINTER_ALIGNMENT IoControlCode;
      PVOID                   Arg4;
    } Others;
  } Parameters;
} WDF_REQUEST_PARAMETERS, *PWDF_REQUEST_PARAMETERS;

Anggota

Size

Ukuran, dalam byte, dari struktur ini.

MinorFunction

Kode fungsi minor IRP, jika ada, yang terkait dengan permintaan I/O. Beberapa kode fungsi utama memiliki kode fungsi minor terkait.

Type

Nilai jenis WDF_REQUEST_TYPE yang mengidentifikasi jenis permintaan I/O.

Parameters

Parameter yang unik untuk setiap kode fungsi utama IRP. Anggota ini berisi subset anggota Parameter dari struktur IO_STACK_LOCATION .

Parameters.Create

Parameter untuk IRP_MJ_CREATE.

Parameters.Create.SecurityContext

Parameters.Create.Options

Parameters.Create.FileAttributes

Parameters.Create.ShareAccess

Parameters.Create.EaLength

Parameters.Read

Parameter untuk IRP_MJ_READ.

Parameters.Read.Length

Parameters.Read.Key

Parameters.Read.DeviceOffset

Parameters.Write

Parameter untuk IRP_MJ_WRITE.

Parameters.Write.Length

Parameters.Write.Key

Parameters.Write.DeviceOffset

Parameters.DeviceIoControl

Parameter untuk IRP_MJ_DEVICE_CONTROL dan IRP_MJ_INTERNAL_DEVICE_CONTROL.

Parameters.DeviceIoControl.OutputBufferLength

Parameters.DeviceIoControl.InputBufferLength

Parameters.DeviceIoControl.IoControlCode

Parameters.DeviceIoControl.Type3InputBuffer

Parameters.Others

Penggunaan anggota ini ditentukan oleh tumpukan driver.

Parameters.Others.Arg1

Parameters.Others.Arg2

Parameters.Others.IoControlCode

Parameters.Others.Arg4

Keterangan

Struktur WDF_REQUEST_PARAMETERS digunakan sebagai input ke WdfRequestGetParameters. Driver harus memanggil WDF_REQUEST_PARAMETERS_INIT untuk menginisialisasi struktur ini sebelum mereka memanggil WdfRequestGetParameters.

Persyaratan

Persyaratan Nilai
Versi KMDF minimum 1,0
Versi UMDF minimum 2.0
Header wdfrequest.h (termasuk Wdf.h)

Lihat juga

IO_STACK_LOCATION

WDF_REQUEST_PARAMETERS_INIT

WdfRequestGetParameters