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.

54 lines
1.3 KiB

  1. /**************************************************************************\
  2. * Module Name: ntreg.hxx
  3. *
  4. * CRegistrySettings class
  5. *
  6. * This class handles getting registry information for display driver
  7. * information.
  8. *
  9. * Copyright (c) Microsoft Corp. 1992-1998 All Rights Reserved
  10. *
  11. \**************************************************************************/
  12. class CRegistrySettings
  13. {
  14. private:
  15. //
  16. // Data members
  17. //
  18. HKEY _hkVideoReg;
  19. LPTSTR _pszDrvName;
  20. LPTSTR _pszKeyName;
  21. LPTSTR _pszDeviceInstanceId;
  22. //
  23. // Helper functions
  24. //
  25. VOID InitDeviceInstanceID(LPTSTR pstrDeviceKey);
  26. BOOL GetDevInfoDataFromInterfaceName(LPWSTR pwInterfaceName,
  27. HDEVINFO* phDevInfo,
  28. PSP_DEVINFO_DATA pDevInfoData);
  29. public:
  30. CRegistrySettings(LPTSTR pstrDeviceKey);
  31. ~CRegistrySettings();
  32. VOID GetHardwareInformation(PDISPLAY_REGISTRY_HARDWARE_INFO pInfo);
  33. //
  34. // THESE FUNCTIONS DO NOT RETURN A CLONE!
  35. // THE CALLER MUST COPY IT IF IT NEEDS TO KEEP IT AROUND!
  36. // DO NOT FREE THE POINTER RETURNED FROM THIS CALL!
  37. //
  38. LPTSTR GetMiniPort(void) { return _pszDrvName; }
  39. LPTSTR GetDeviceInstanceId() { return _pszDeviceInstanceId; }
  40. };