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.

27 lines
1.1 KiB

  1. //******************************************************************************
  2. //
  3. // RegHelp.h : Collection of Registry helping functions
  4. //
  5. // Copyright (C) 1994-1997 by Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. //******************************************************************************
  9. #if !defined(MITUTIL_RegHelp_h_INCLUDED)
  10. #define MITUTIL_RegHelp_h_INCLUDED
  11. #pragma once
  12. //------------------------------------------------------------------------------
  13. class LTAPIENTRY CRegHelp
  14. {
  15. public:
  16. static BOOL GetRegValue(HKEY hKey, LPCTSTR pszPath, const CString & stName, CString & stValue);
  17. static BOOL GetRegValue(HKEY hKey, LPCTSTR pszPath, const CString & stName, DWORD & dwNum);
  18. static BOOL GetRegValue(HKEY hKey, LPCTSTR pszPath, const CString & stName, long & nNum);
  19. static BOOL GetRegValue(HKEY hKey, LPCTSTR pszPath, const CString & stName, BOOL & fNum);
  20. static BOOL GetRegValue(HKEY hKey, LPCTSTR pszPath, const CString & stName, VARIANT_BOOL & fNum);
  21. static BOOL GetRegValue(HKEY hKey, LPCTSTR pszPath, const CString & stName, GUID & guid);
  22. };
  23. #endif // MITUTIL_RegHelp_h_INCLUDED