Post · 5 min read· pp. 2428–2432

IO_X.H

The public symbol file NTKRPAMP.PDB for the original release of Windows 10 tells that the kernel is built with the IO_X.H header at

d:\th\minkernel\ntos\inc

and draws from it very many type definitions, many of which are essential knowledge for writing device drivers.

The header IO_X.H itself is not in any Device Driver Kit (DDK) or Windows Driver Kit (WDK). Yet most of its types that are used by the kernel are necessarily known to all kernel-mode programmers even outside Microsoft. How these types get known so widely is that they are also defined in one or another of what might be called the standard headers for kernel-mode programming, i.e., WDM.H, NTDDK.H and NTIFS.H. Most of these types and all the others are also defined in the NTOSP.H, which is much like the standard headers except that Microsoft does not ordinarily supply it with any Windows Driver Kit. It is, however, supplied with the Windows 10 WDK for the original release and for Version 1511.

Whether IO_X.H is the master header from which types are extracted for more or less public presentation, or whether IO_X.H also is generated from yet some other header, is not known. In the tables that follow, the line number on the left is from the unseen IO_X.H as inferred from the symbol file and the line numbers on the right are from the headers as supplied with the matching WDK.

Line NumberTypeWDM.HNTDDK.HNTIFS.HNTOSP.H
413enum _DUMP_EVENTS23224
447struct _DUMP_INITIALIZATION_CONTEXT23258
469unnamed union for DiskInfo in _DUMP_INITIALIZATION_CONTEXT23280
470unnamed struct for Mbr in DiskInfo in _DUMP_INITIALIZATION_CONTEXT23281
474unnamed struct for Gpt in DiskInfo in _DUMP_INITIALIZATION_CONTEXT23285
736enum _CREATE_FILE_TYPE2643323547
749struct _NAMED_PIPE_CREATE_PARAMETERS2644623560
767struct _MAILSLOT_CREATE_PARAMETERS2646423578
1450struct _FAST_IO_DISPATCH2711124243
1488enum _FS_FILTER_SECTION_SYNC_TYPE14808
1497struct _FS_FILTER_SECTION_SYNC_OUTPUT14817
1508enum _FS_FILTER_STREAM_IO_NOTIFICATION_TYPE14828
1524union _FS_FILTER_PARAMETERS14844
1530unnamed struct for AcquireForModifiedPageWriter in _FS_FILTER_PARAMETERS14850
1539unnamed struct for ReleaseForModifiedPageWriter in _FS_FILTER_PARAMETERS14859
1547unnamed struct for AcquireForSectionSynchronization in _FS_FILTER_PARAMETERS14867
1557unnamed struct for NotifyStreamFileObject in _FS_FILTER_PARAMETERS14877
1566unnamed struct for Others in _FS_FILTER_PARAMETERS14886
1592struct _FS_FILTER_CALLBACK_DATA14912
1641struct _FS_FILTER_CALLBACKS14961
1692enum _IO_ALLOCATION_ACTION2714724279
1720struct _IO_SECURITY_CONTEXT2717524307
1747struct _VPB2720024332
1805struct _WAIT_CONTEXT_BLOCK2725824390
1888struct _DEVICE_OBJECT2730024473
1903unnamed union Queue in _DEVICE_OBJECT2731524488
1939struct _DEVOBJ_EXTENSION2734924522
2056struct _DRIVER_EXTENSION2738424632
2131struct _DRIVER_OBJECT2742124669
2246struct _SECTION_OBJECT_POINTERS2749124739
2257struct _IO_COMPLETION_CONTEXT2750224750
2312struct _FILE_OBJECT2755224805
2431struct _IRP2762324884
2475unnamed union for AssociatedIrp in _IRP2765924928
2545unnamed union for Overlay in _IRP2772924998
2546unnamed struct for AsynchronousParameters in Overlay in _IRP2773024999
2583unnamed union for Tail in _IRP2776725036
2585unnamed struct for Overlay in Tail in _IRP2776925038
2813enum _DEVICE_RELATION_TYPE2798925261
2823struct _DEVICE_RELATIONS2799925271
2836enum _DEVICE_USAGE_NOTIFICATION_TYPE2801225284
2851struct _INTERFACE2802725299
2862struct _DEVICE_CAPABILITIES2803825310
2898struct _POWER_SEQUENCE2807425346
2904enum BUS_QUERY_ID_TYPE2808025352
2923enum DEVICE_TEXT_TYPE2809925371
2952struct _IO_STACK_LOCATION2812825400
2964unnamed union for Parameters in _IO_STACK_LOCATION2814025412
2970unnamed struct for Create in Parameters in _IO_STACK_LOCATION2814625418
2987unnamed struct for CreatePipe in Parameters in _IO_STACK_LOCATION2816325435
3004unnamed struct for CreateMailslot in Parameters in _IO_STACK_LOCATION2818025452
3016unnamed struct for Read in Parameters in _IO_STACK_LOCATION2819225464
3026unnamed struct for Write in Parameters in _IO_STACK_LOCATION2820225474
3036unnamed struct for QueryDirectory in Parameters in _IO_STACK_LOCATION2821225484
3047unnamed struct for NotifyDirectory in Parameters in _IO_STACK_LOCATION2822325495
3056unnamed struct for QueryFile in Parameters in _IO_STACK_LOCATION2823225504
3065unnamed struct for SetFile in Parameters in _IO_STACK_LOCATION2824125513
3085unnamed struct for QueryEa in Parameters in _IO_STACK_LOCATION28261
3096unnamed struct for SetEa in Parameters in _IO_STACK_LOCATION28272
3106unnamed struct for QueryVolume in Parameters in _IO_STACK_LOCATION2828225532
3117unnamed struct for SetVolume in Parameters in _IO_STACK_LOCATION28293
3129unnamed struc for FileSystemControl in Parameters in _IO_STACK_LOCATION2830525544
3139unnamed struct for LockControl in Parameters in _IO_STACK_LOCATION2831525554
3168unnamed struct for DeviceIoControl in Parameters in _IO_STACK_LOCATION2834425574
3179unnamed struct for QuerySecurity in Parameters in _IO_STACK_LOCATION2835525585
3188unnamed struct for SetSecurity in Parameters in _IO_STACK_LOCATION2836425594
3199unnamed struct for MountVolume in Parameters in _IO_STACK_LOCATION2837525605
3208unnamed struct for VerifyVolume in Parameters in _IO_STACK_LOCATION2838425614
3217unnamed struct for Scsi in Parameters in _IO_STACK_LOCATION2839325623
3227unnamed struct for QueryQuota in Parameters in _IO_STACK_LOCATION28403
3238unnamed struct for SetQuota in Parameters in _IO_STACK_LOCATION28414
3248unnamed struct for QueryDeviceRelations in Parameters in _IO_STACK_LOCATION2842425632
3256unnamed struct for QueryInterface in Parameters in _IO_STACK_LOCATION2843225640
3268unnamed struct for DeviceCapabilities in Parameters in _IO_STACK_LOCATION2844425652
3276unnamed struct for FilterResourceRequirements in Parameters in _IO_STACK_LOCATION2845225660
3284unnamed struct for ReadWriteConfig in Parameters in _IO_STACK_LOCATION2846025668
3295unnamed struct for SetLock in Parameters in _IO_STACK_LOCATION2847125679
3303unnamed struct for QueryId in Parameters in _IO_STACK_LOCATION2847925687
3311unnamed struct for QueryDeviceText in Parameters in _IO_STACK_LOCATION2848725695
3320unnamed struct for UsageNotification in Parameters in _IO_STACK_LOCATION2849625704
3330unnamed struct for WaitWake in Parameters in _IO_STACK_LOCATION2850625714
3338unnamed struct for PowerSequence in Parameters in _IO_STACK_LOCATION2851425722
3347unnamed struct for Power in Parameters in _IO_STACK_LOCATION2852325731
3369unnamed struct for StartDevice in Parameters in _IO_STACK_LOCATION2854525753
3384unnamed struct for WMI in Parameters in _IO_STACK_LOCATION2856025768
3395unnamed struct for Others in Parameters in _IO_STACK_LOCATION2857125779
6248struct _IO_REMOVE_LOCK_COMMON_BLOCK3049128248
6269struct _IO_REMOVE_LOCK3051228269
7027struct _IO_MINI_COMPLETION_PACKET_USER28940
7623struct _TXN_PARAMETER_BLOCK1043229467
7732struct _IO_DRIVER_CREATE_CONTEXT1052729562
8017struct _IO_PRIORITY_INFO1569729808
8483struct _IO_IRP_EXT_TRACK_OFFSET_HEADER1581030203