ddktypes.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {%MainUnit ddk.pas}
  2. {
  3. Driver Development Kit for Native NT
  4. Basic types used in Kernel Mode
  5. This file is part of the Free Pascal run time library.
  6. Copyright (c) 2009 by Sven Barth
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. type
  14. _DEVICE_OBJECT = packed record
  15. end;
  16. TDeviceObject = _DEVICE_OBJECT;
  17. PDeviceObject = ^TDeviceObject;
  18. _FAST_IO_DISPATCH = packed record
  19. end;
  20. TFastIODispatch = _FAST_IO_DISPATCH;
  21. PFastIODispatch = ^TFastIODispatch;
  22. _DRIVER_EXTENSION = packed record
  23. end;
  24. TDriverExtension = _DRIVER_EXTENSION;
  25. PDriverExtension = ^TDriverExtension;
  26. _DRIVER_OBJECT = packed record
  27. _Type: SmallInt;
  28. Size: SmallInt;
  29. DeviceObject: PDeviceObject;
  30. Flags: LongWord;
  31. DriverStart: Pointer;
  32. DriverSize: LongWord;
  33. DriverSection: Pointer;
  34. DriverExtension: PDriverExtension;
  35. DriverName: TNtUnicodeString;
  36. HardwareDatabase: PNtUnicodeString;
  37. FastIoDispatch: PFastIODispatch;
  38. DriverInit: PLongInt;
  39. DriverStartIo: Pointer;
  40. DriverUnload: Pointer;
  41. MajorFunction: array[0..27] of PLongInt;
  42. end;
  43. TDriverObject = _Driver_Object;
  44. PDriverObject = ^TDriverObject;
  45. POOL_TYPE = (
  46. NonPagedPool,
  47. PagedPool,
  48. NonPagedPoolMustSucceed,
  49. DontUseThisType,
  50. NonPagedPoolCacheAligned,
  51. PagedPoolCacheAligned,
  52. NonPagedPoolCacheAlignedMustS,
  53. MaxPoolType,
  54. NonPagedPoolSession = 32,
  55. PagedPoolSession,
  56. NonPagedPoolMustSucceedSession,
  57. DontUseThisTypeSession,
  58. NonPagedPoolCacheAlignedSession,
  59. PagedPoolCacheAlignedSession,
  60. NonPagedPoolCacheAlignedMustSSession
  61. );
  62. TPoolType = POOL_TYPE;