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.

120 lines
4.2 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. regprintres.hxx
  5. Abstract:
  6. This module contains the declarations for the PRINT_MANAGER class.
  7. The PRINT_RESOURCE class is responsible for displayning the Printer
  8. Setup Dialog, for printing a registry.
  9. Author:
  10. Jaime Sasson (jaimes) 18-Sep-1991
  11. Environment:
  12. --*/
  13. #if !defined( _PRINT_RESOURCE_ )
  14. #define _PRINT_RESOURCE_
  15. // don't let ntdddisk.h (included in ulib.hxx")
  16. // redefine values
  17. #define _NTDDDISK_H_
  18. #include "ulib.hxx"
  19. #include "wstring.hxx"
  20. #include "regresls.hxx"
  21. #include "regfdesc.hxx"
  22. #include "regdesc.hxx"
  23. #include "regioreq.hxx"
  24. #include "regiodls.hxx"
  25. #include "regiodsc.hxx"
  26. DECLARE_CLASS( PRINT_RESOURCE );
  27. class PRINT_RESOURCE : public OBJECT
  28. {
  29. public:
  30. DECLARE_CONSTRUCTOR( PRINT_RESOURCE );
  31. DECLARE_CAST_MEMBER_FUNCTION( PRINT_RESOURCE );
  32. STATIC void _PrintResources(PBYTE pbData, UINT uSize, DWORD dwType);
  33. private:
  34. STATIC BOOL _InitializeStrings();
  35. STATIC void _PrintDataRegResourceList(PBYTE Data, UINT Size);
  36. STATIC BOOL _PrintFullResourceDescriptor(PCFULL_DESCRIPTOR FullDescriptor,
  37. UINT DescriptorNumber, BOOL PrintDescriptorNumber DEFAULT TRUE);
  38. STATIC BOOL _PrintPartialDescriptor(PCPARTIAL_DESCRIPTOR PartialDescriptor,
  39. ULONG DescriptorNumber);
  40. STATIC BOOL _PrintInterruptDescriptor(PCINTERRUPT_DESCRIPTOR Descriptor);
  41. STATIC BOOL _PrintPortDescriptor(PCPORT_DESCRIPTOR Descriptor);
  42. STATIC BOOL _PrintMemoryDescriptor(PCMEMORY_DESCRIPTOR Descriptor);
  43. STATIC BOOL _PrintDmaDescriptor(PCDMA_DESCRIPTOR Descriptor);
  44. STATIC BOOL _PrintDeviceSpecificDescriptor(PCDEVICE_SPECIFIC_DESCRIPTOR Descriptor);
  45. STATIC BOOL _PrintDataRegRequirementsList(PBYTE Data, ULONG Size);
  46. STATIC BOOL _PrintIoResourceList(PCIO_DESCRIPTOR_LIST DescriptorList, UINT ListNumber);
  47. STATIC BOOL _PrintIoDescriptor(PCIO_DESCRIPTOR IoDescriptor, ULONG DescriptorNumber);
  48. STATIC BOOL _PrintIoInterruptDescriptor(PCIO_INTERRUPT_DESCRIPTOR Descriptor);
  49. STATIC BOOL _PrintIoPortDescriptor(PCIO_PORT_DESCRIPTOR Descriptor);
  50. STATIC BOOL _PrintIoMemoryDescriptor(PCIO_MEMORY_DESCRIPTOR Descriptor);
  51. STATIC BOOL _PrintIoDmaDescriptor(PCIO_DMA_DESCRIPTOR Descriptor);
  52. STATIC BOOL s_StringsInitialized;
  53. STATIC PWSTRING s_IndentString;
  54. STATIC PWSTRING s_StringFullDescriptor;
  55. STATIC PWSTRING s_StringInterfaceType;
  56. STATIC PWSTRING s_StringBusNumber;
  57. STATIC PWSTRING s_StringVersion;
  58. STATIC PWSTRING s_StringRevision;
  59. STATIC PWSTRING s_EmptyLine;
  60. STATIC PWSTRING s_StringPartialDescriptor;
  61. STATIC PWSTRING s_StringResource;
  62. STATIC PWSTRING s_StringDisposition;
  63. STATIC PWSTRING s_StringVector;
  64. STATIC PWSTRING s_StringLevel;
  65. STATIC PWSTRING s_StringAffinity;
  66. STATIC PWSTRING s_StringType;
  67. STATIC PWSTRING s_StringStart;
  68. STATIC PWSTRING s_StringLength;
  69. STATIC PWSTRING s_StringChannel;
  70. STATIC PWSTRING s_StringPort;
  71. STATIC PWSTRING s_StringReserved1;
  72. STATIC PWSTRING s_StringReserved2;
  73. STATIC PWSTRING s_StringDevSpecificData;
  74. STATIC PWSTRING s_StringIoInterfaceType;
  75. STATIC PWSTRING s_StringIoBusNumber;
  76. STATIC PWSTRING s_StringIoSlotNumber;
  77. STATIC PWSTRING s_StringIoListNumber;
  78. STATIC PWSTRING s_StringIoDescriptorNumber;
  79. STATIC PWSTRING s_StringIoOption;
  80. STATIC PWSTRING s_StringIoMinimumVector;
  81. STATIC PWSTRING s_StringIoMaximumVector;
  82. STATIC PWSTRING s_StringIoMinimumAddress;
  83. STATIC PWSTRING s_StringIoMaximumAddress;
  84. STATIC PWSTRING s_StringIoAlignment;
  85. STATIC PWSTRING s_StringIoMinimumChannel;
  86. STATIC PWSTRING s_StringIoMaximumChannel;
  87. };
  88. extern "C"
  89. {
  90. VOID PrintResourceData(PBYTE pbData, UINT uSize, DWORD dwType);
  91. }
  92. #endif // _PRINT_RESOURCE_