Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.2 KiB

  1. /*++
  2. Copyright (C) 1997-99 Microsoft Corporation
  3. Module Name:
  4. regutil.h
  5. Abstract:
  6. --*/
  7. #if !defined (___regutils_h___)
  8. #define ___regutils_h___
  9. //
  10. // Device Parameter Registry Flag Names
  11. //
  12. #define MASTER_DEVICE_TYPE L"MasterDeviceType"
  13. #define SLAVE_DEVICE_TYPE L"SlaveDeviceType"
  14. #define MASTER_DEVICE_TYPE2 L"MasterDeviceType2"
  15. #define SLAVE_DEVICE_TYPE2 L"SlaveDeviceType2"
  16. #define DRIVER_PARAMETER_SUBKEY "Parameters"
  17. #define NEED_IDENT_DEVICE L"NeedIdentDevice"
  18. #define PIO_ONLY_DEVICE L"PioOnlyDevice"
  19. #define DEFAULT_PIO_DEVICE L"DefaultPioAtapiDevice"
  20. #define AUTO_EJECT_ZIP_DEVICE L"AutoEjectZipDevice"
  21. #define GHOST_SLAVE_DEVICE L"GhostSlave"
  22. #define CHECK_POWER_FLUSH_DEVICE L"UseCheckPowerForFlush"
  23. #define NO_FLUSH_DEVICE L"NoFlushDevice"
  24. #define NO_POWER_DOWN_DEVICE L"NoPowerDownDevice"
  25. #define NONREMOVABLE_MEDIA_OVERRIDE L"NonRemovableMedia"
  26. #define LEGACY_DETECTION L"LegacyDetection"
  27. NTSTATUS
  28. IdePortGetParameterFromServiceSubKey (
  29. IN PDRIVER_OBJECT DriverObject,
  30. IN PWSTR ParameterName,
  31. IN ULONG ParameterType,
  32. IN BOOLEAN Read,
  33. OUT PVOID *ParameterValue,
  34. IN ULONG ParameterValueWriteSize
  35. );
  36. NTSTATUS
  37. IdePortRegQueryRoutine (
  38. IN PWSTR ValueName,
  39. IN ULONG ValueType,
  40. IN PVOID ValueData,
  41. IN ULONG ValueLength,
  42. IN PVOID Context,
  43. IN PVOID EntryContext
  44. );
  45. NTSTATUS
  46. IdePortGetDeviceParameter (
  47. IN PFDO_EXTENSION FdoExtension,
  48. IN PWSTR ParameterName,
  49. IN OUT PULONG ParameterValue
  50. );
  51. NTSTATUS
  52. IdePortSaveDeviceParameter (
  53. IN PFDO_EXTENSION FdoExtension,
  54. IN PWSTR ParameterName,
  55. IN ULONG ParameterValue
  56. );
  57. HANDLE
  58. IdePortOpenServiceSubKey (
  59. IN PDRIVER_OBJECT DriverObject,
  60. IN PUNICODE_STRING SubKeyPath
  61. );
  62. VOID
  63. IdePortCloseServiceSubKey (
  64. IN HANDLE SubServiceKey
  65. );
  66. #endif // ___regutils_h___