Source code of Windows XP (NT5)
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.

107 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. regresls.hxx
  5. Abstract:
  6. This module contains the declarations for the RESOURCE_LIST
  7. class. This class models models a CM_RESOURCE_LIST structure,
  8. used on registry data of type REG_RESOURCE_LIST.
  9. Author:
  10. Jaime Sasson (jaimes) 01-Dec-1993
  11. Environment:
  12. ULIB, User Mode
  13. --*/
  14. #if !defined( _RESOURCE_LIST_ )
  15. #define _RESOURCE_LIST_
  16. // don't let ntdddisk.h (included in ulib.hxx"
  17. // redefine values
  18. #define _NTDDDISK_H_
  19. #include "ulib.hxx"
  20. #include "array.hxx"
  21. DECLARE_CLASS( RESOURCE_LIST );
  22. class RESOURCE_LIST : OBJECT {
  23. public:
  24. DECLARE_CONSTRUCTOR( RESOURCE_LIST );
  25. VIRTUAL
  26. ~RESOURCE_LIST(
  27. );
  28. NONVIRTUAL
  29. BOOLEAN
  30. Initialize(
  31. IN PCBYTE Data,
  32. IN ULONG DataSize
  33. );
  34. NONVIRTUAL
  35. PARRAY
  36. GetFullResourceDescriptors(
  37. ) CONST;
  38. private:
  39. NONVIRTUAL
  40. VOID
  41. Construct(
  42. );
  43. NONVIRTUAL
  44. VOID
  45. Destroy(
  46. );
  47. PARRAY _FullResourceDescriptors;
  48. };
  49. INLINE
  50. PARRAY
  51. RESOURCE_LIST::GetFullResourceDescriptors(
  52. ) CONST
  53. /*++
  54. Routine Description:
  55. Return a pointer to the array that contains the full resource
  56. descriptors.
  57. Arguments:
  58. None.
  59. Return Value:
  60. PARRAY - Pointer to the array that contains the full resource descriptors.
  61. --*/
  62. {
  63. return( _FullResourceDescriptors );
  64. }
  65. #endif // _RESOURCE_LIST_