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.

54 lines
997 B

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. INFSCAN
  5. verinfo.h
  6. Abstract:
  7. Driver node Version management
  8. History:
  9. Created July 2001 - JamieHun
  10. --*/
  11. #ifndef _INFSCAN_VERINFO_H_
  12. #define _INFSCAN_VERINFO_H_
  13. class BasicVerInfo {
  14. public:
  15. DWORD PlatformMask;
  16. DWORD VersionHigh;
  17. DWORD VersionLow;
  18. DWORD ProductType;
  19. DWORD ProductSuite;
  20. public:
  21. int IsBetter(BasicVerInfo & other,BasicVerInfo & filter);
  22. virtual bool IsCompatibleWith(BasicVerInfo & other);
  23. BasicVerInfo();
  24. int Parse(PTSTR verString);
  25. };
  26. class NodeVerInfo : public BasicVerInfo {
  27. public:
  28. SafeString Decoration;
  29. bool Rejected;
  30. public:
  31. NodeVerInfo();
  32. int IsBetter(NodeVerInfo & other,BasicVerInfo & filter);
  33. int Parse(PTSTR verString);
  34. int Parse(const SafeString & str);
  35. };
  36. typedef list<NodeVerInfo> NodeVerInfoList;
  37. #endif //!_INFSCAN_VERINFO_H_