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.

92 lines
2.4 KiB

  1. /******************************************************************
  2. infnode.h
  3. Generic class for tracking CM32 Devnodes' INF's
  4. first created (as such) by jeffth
  5. Revision history
  6. 3-99 jeffth created
  7. *******************************************************************/
  8. #ifndef _INCUDED_INFNODE_H_
  9. #define _INCUDED_INFNODE_H_
  10. /*******************************************************************
  11. INCLUDES
  12. *******************************************************************/
  13. #include "devnode.h"
  14. #include <ASSERT.H>
  15. /*******************************************************************
  16. DEFINES
  17. *******************************************************************/
  18. /*******************************************************************
  19. CLASSES and STRUCTS
  20. *******************************************************************/
  21. class InfnodeClass : public DevnodeClass
  22. {
  23. public:
  24. ~InfnodeClass(void);
  25. InfnodeClass(void);
  26. InfnodeClass(DEVNODE dev, DEVNODE parent);
  27. ULONG GetInfInformation(void);
  28. virtual BOOL SetHandle(DEVNODE hDevnode, DEVNODE hParent = NULL);
  29. // accessors:
  30. TCHAR * InfName(void) {return szInfName ;};
  31. TCHAR * InfProvider(void) {return szInfProvider ;};
  32. TCHAR * DevLoader(void) {return szDevLoader ;};
  33. TCHAR * DriverName(void) {return szDriverName ;};
  34. TCHAR * DriverDate(void) {return szDriverDate ;};
  35. TCHAR * DriverDesc(void) {return szDriverDesc ;};
  36. TCHAR * DriverVersion(void) {return szDriverVersion ;};
  37. TCHAR * InfSection(void) {return szInfSection ;};
  38. protected:
  39. TCHAR * szInfName;
  40. TCHAR * szInfProvider;
  41. TCHAR * szDevLoader;
  42. TCHAR * szDriverName;
  43. TCHAR * szDriverDate;
  44. TCHAR * szDriverDesc;
  45. TCHAR * szDriverVersion;
  46. TCHAR * szInfSection;
  47. private:
  48. };
  49. /*******************************************************************
  50. GLOBALS
  51. *******************************************************************/
  52. /*******************************************************************
  53. PROTOTYPES
  54. *******************************************************************/
  55. ULONG ReadRegKeyInformationSZ (HKEY RootKey, TCHAR *KeyName, TCHAR **Value);
  56. ULONG EnumerateTree_Infnode(void);
  57. #endif //_INCUDED_INFNODE_H_