windows-nt/Source/XPSP1/NT/shell/cpls/desknt5/ntreg.hxx

55 lines
1.3 KiB
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/**************************************************************************\
* Module Name: ntreg.hxx
*
* CRegistrySettings class
*
* This class handles getting registry information for display driver
* information.
*
* Copyright (c) Microsoft Corp. 1992-1998 All Rights Reserved
*
\**************************************************************************/
class CRegistrySettings
{
private:
//
// Data members
//
HKEY _hkVideoReg;
LPTSTR _pszDrvName;
LPTSTR _pszKeyName;
LPTSTR _pszDeviceInstanceId;
//
// Helper functions
//
VOID InitDeviceInstanceID(LPTSTR pstrDeviceKey);
BOOL GetDevInfoDataFromInterfaceName(LPWSTR pwInterfaceName,
HDEVINFO* phDevInfo,
PSP_DEVINFO_DATA pDevInfoData);
public:
CRegistrySettings(LPTSTR pstrDeviceKey);
~CRegistrySettings();
VOID GetHardwareInformation(PDISPLAY_REGISTRY_HARDWARE_INFO pInfo);
//
// THESE FUNCTIONS DO NOT RETURN A CLONE!
// THE CALLER MUST COPY IT IF IT NEEDS TO KEEP IT AROUND!
// DO NOT FREE THE POINTER RETURNED FROM THIS CALL!
//
LPTSTR GetMiniPort(void) { return _pszDrvName; }
LPTSTR GetDeviceInstanceId() { return _pszDeviceInstanceId; }
};