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.

55 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: regkeyex.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #pragma once
  11. #include "shlwapip.h" // for SHLoadRegUIString
  12. /*
  13. regkeyex.h
  14. This class extends the ATL CRegKey class to make a replacement for
  15. the AMC::CRegKey class
  16. Much of this code is taken from the AMC::CRegKey class by RaviR
  17. */
  18. class CRegKeyEx : public MMC_ATL::CRegKey
  19. {
  20. public:
  21. SC ScCreate (
  22. HKEY hKeyParent,
  23. LPCTSTR lpszKeyName,
  24. LPTSTR lpszClass = REG_NONE,
  25. DWORD dwOptions = REG_OPTION_NON_VOLATILE,
  26. REGSAM samDesired = KEY_ALL_ACCESS,
  27. LPSECURITY_ATTRIBUTES lpSecAttr = NULL,
  28. LPDWORD lpdwDisposition = NULL);
  29. SC ScOpen(
  30. HKEY hKey,
  31. LPCTSTR lpszKeyName,
  32. REGSAM security = KEY_ALL_ACCESS);
  33. BOOL IsValuePresent (LPCTSTR lpszValueName);
  34. SC ScQueryValue (LPCTSTR lpszValueName, LPDWORD pType,
  35. PVOID pData, LPDWORD pLen);
  36. SC ScEnumKey (DWORD iSubkey, LPTSTR lpszName, LPDWORD lpcchName,
  37. PFILETIME lpftLastModified = NULL);
  38. SC ScEnumValue (DWORD iValue, LPTSTR lpszValue, LPDWORD lpcchValue,
  39. LPDWORD lpdwType = NULL, LPBYTE lpbData = NULL,
  40. LPDWORD lpcbData = NULL);
  41. #include "regkeyex.inl"
  42. };