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.

133 lines
4.8 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. regdata.hxx
  5. Abstract:
  6. This module contains the declaration for the REGISTRY_DATA
  7. class.
  8. The REGISTRY_DATA class contains the methods that display
  9. registry data of type REG_RESOURCE_LIST and REG_FULL_RESOURCE_DESCRIPTOR.
  10. Author:
  11. Jaime Sasson (jaimes) 30-Nov-1993
  12. Environment:
  13. Ulib, Regedit, Windows, User Mode
  14. --*/
  15. #if !defined( _REGISTRY_DATA_ )
  16. #define _REGISTRY_DATA_
  17. // don't let ntdddisk.h (included in ulib.hxx"
  18. // redefine values
  19. #define _NTDDDISK_H_
  20. #include "ulib.hxx"
  21. #include "wstring.hxx"
  22. #include "regfdesc.hxx"
  23. #include "regresls.hxx"
  24. #include "regdesc.hxx"
  25. #include "regiodsc.hxx"
  26. #include "regioreq.hxx"
  27. extern "C" typedef struct _EDITVALUEPARAM
  28. {
  29. PTSTR pValueName;
  30. PBYTE pValueData;
  31. UINT cbValueData;
  32. } EDITVALUEPARAM, FAR *LPEDITVALUEPARAM;
  33. DECLARE_CLASS( REGISTRY_DATA );
  34. class REGISTRY_DATA : public OBJECT
  35. {
  36. public:
  37. DECLARE_CONSTRUCTOR( REGISTRY_DATA );
  38. DECLARE_CAST_MEMBER_FUNCTION( REGISTRY_DATA );
  39. STATIC VOID _DisplayData(HWND hWnd, DWORD dwType, LPEDITVALUEPARAM lpEditValueParam);
  40. STATIC VOID _DisplayBinaryData(HWND hWnd, PCBYTE Data, ULONG DataSize,
  41. BOOL fDisplayValueType = FALSE, DWORD dwValueType = 0);
  42. private:
  43. STATIC BOOL _InitializeStrings();
  44. STATIC VOID _DisplayResourceList(HWND hWnd, PCRESOURCE_LIST pResourceList);
  45. STATIC VOID _DisplayFullResourceDescriptor(HWND hWnd, PCFULL_DESCRIPTOR pFullResourcedescriptor);
  46. STATIC VOID _DisplayRequirementsList(HWND hWnd, PCIO_REQUIREMENTS_LIST pRequirementsList);
  47. STATIC VOID _DisplayIoDescriptor(HWND hWnd, PCIO_DESCRIPTOR pIODescriptor);
  48. STATIC INT_PTR CALLBACK _DisplayResourceListDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam, LPARAM lParam);
  49. STATIC INT_PTR CALLBACK _DisplayFullResourceDescriptorDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam,
  50. LPARAM lParam);
  51. STATIC INT_PTR CALLBACK _DisplayRequirementsListDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam,
  52. LPARAM lParam);
  53. STATIC INT_PTR CALLBACK _DisplayIoPortDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam,
  54. LPARAM lParam);
  55. STATIC INT_PTR CALLBACK _DisplayIoMemoryDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam,
  56. LPARAM lParam);
  57. STATIC INT_PTR CALLBACK _DisplayIoInterruptDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam,
  58. LPARAM lParam);
  59. STATIC INT_PTR CALLBACK _DisplayIoDmaDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam,
  60. LPARAM lParam);
  61. STATIC INT_PTR CALLBACK _DisplayBinaryDataDialogProc(HWND hDlg, UINT dwMsg, WPARAM wParam,
  62. LPARAM lParam);
  63. STATIC PVOID _GetSelectedItem(HWND hDlg, ULONG ClbId);
  64. STATIC VOID _UpdateShareDisplay(HWND hDlg, PCPARTIAL_DESCRIPTOR pDescriptor);
  65. STATIC VOID _UpdateOptionDisplay(HWND hDlg, PCIO_DESCRIPTOR pDescriptor);
  66. STATIC VOID _DumpBinaryData(HWND hDlg, PCBYTE Data, ULONG Size);
  67. STATIC VOID _DumpBinaryDataAsWords(HWND hDlg, PCBYTE Data,ULONG Size);
  68. STATIC VOID _DumpBinaryDataAsDwords(HWND hDlg, PCBYTE Data, ULONG Size);
  69. STATIC BOOL s_StringsInitialized;
  70. STATIC PWSTRING s_MsgBusInternal;
  71. STATIC PWSTRING s_MsgBusIsa;
  72. STATIC PWSTRING s_MsgBusEisa;
  73. STATIC PWSTRING s_MsgBusMicroChannel;
  74. STATIC PWSTRING s_MsgBusTurboChannel;
  75. STATIC PWSTRING s_MsgBusPCIBus;
  76. STATIC PWSTRING s_MsgBusVMEBus;
  77. STATIC PWSTRING s_MsgBusNuBus;
  78. STATIC PWSTRING s_MsgBusPCMCIABus;
  79. STATIC PWSTRING s_MsgBusCBus;
  80. STATIC PWSTRING s_MsgBusMPIBus;
  81. STATIC PWSTRING s_MsgBusMPSABus;
  82. STATIC PWSTRING s_MsgInvalid;
  83. STATIC PWSTRING s_MsgDevPort;
  84. STATIC PWSTRING s_MsgDevInterrupt;
  85. STATIC PWSTRING s_MsgDevMemory;
  86. STATIC PWSTRING s_MsgDevDma;
  87. STATIC PWSTRING s_MsgIntLevelSensitive;
  88. STATIC PWSTRING s_MsgIntLatched;
  89. STATIC PWSTRING s_MsgMemReadWrite;
  90. STATIC PWSTRING s_MsgMemReadOnly;
  91. STATIC PWSTRING s_MsgMemWriteOnly;
  92. STATIC PWSTRING s_MsgPortMemory;
  93. STATIC PWSTRING s_MsgPortPort;
  94. STATIC PWSTRING s_MsgShareUndetermined;
  95. STATIC PWSTRING s_MsgShareDeviceExclusive;
  96. STATIC PWSTRING s_MsgShareDriverExclusive;
  97. STATIC PWSTRING s_MsgShareShared;
  98. };
  99. extern "C"
  100. {
  101. VOID DisplayResourceData(HWND hWnd, DWORD dwType, LPEDITVALUEPARAM lpEditValueParam);
  102. VOID DisplayBinaryData(HWND hWnd, LPEDITVALUEPARAM lpEditValueParam, DWORD dwValueType);
  103. }
  104. #endif // _REGISTRY_DATA_