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.

50 lines
1.1 KiB

  1. #ifndef NicInfo_Included
  2. #define NicInfo_Included
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. #include <string>
  7. using namespace std;
  8. //+------------------------------------------------------------------
  9. //
  10. // Class: CNicInfo
  11. //
  12. // Synopsis: Thin wrapper to maintain state and storage info
  13. // for user friendly NIC name.
  14. //
  15. // The W2K Win32_NetworkAdapter WMI provider does not
  16. // provide access to the user friendly NIC name. This
  17. // class provides access to that attribute for use with
  18. // the Microsoft Network Attached Storage (NAS)
  19. // Appliance product.
  20. //
  21. // History: JKountz 08/19/2000 Created
  22. //
  23. //+------------------------------------------------------------------
  24. class CNicInfo
  25. {
  26. public:
  27. CNicInfo();
  28. virtual ~CNicInfo();
  29. //
  30. // Reg key
  31. //
  32. wstring m_wstrRegKey;
  33. //
  34. // Win32_NetworkAdapter.PNPDeviceID
  35. //
  36. wstring m_wstrPNPDeviceID;
  37. //
  38. // User friendly name
  39. //
  40. wstring m_wstrName;
  41. };
  42. #endif