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.

45 lines
1002 B

  1. //=================================================================
  2. //
  3. // NT4SvcToResMap.h
  4. //
  5. // Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved
  6. //
  7. //=================================================================
  8. #ifndef __NT4SVCTORESMAP_H__
  9. #define __NT4SVCTORESMAP_H__
  10. #ifdef NTONLY
  11. #include <map>
  12. #include "chwres.h"
  13. typedef std::map<CHString,CHPtrArray*> NT4SvcToResourceMap;
  14. typedef std::map<CHString,CHPtrArray*>::iterator NT4SvcToResourceMapIter;
  15. class CNT4ServiceToResourceMap
  16. {
  17. public:
  18. CNT4ServiceToResourceMap();
  19. ~CNT4ServiceToResourceMap();
  20. DWORD NumServiceResources( LPCTSTR pszServiceName );
  21. LPRESOURCE_DESCRIPTOR GetServiceResource( LPCTSTR pszServiceName, DWORD dwIndex );
  22. private:
  23. BOOL InitializeMap( void );
  24. BOOL WalkResourceNodes( LPRESOURCE_DESCRIPTOR pResourceDescriptor );
  25. void Clear( void );
  26. NT4SvcToResourceMap m_map;
  27. CHWResource m_HardwareResource;
  28. };
  29. #endif
  30. #endif