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.

72 lines
1.7 KiB

  1. /**************************************************************************************************
  2. FILENAME: GetReg.h
  3. COPYRIGHT 2001 Microsoft Corporation and Executive Software International, Inc.
  4. DESCRIPTION:
  5. Registry manipulation.
  6. ***************************************************************************************************/
  7. #ifndef __GETREG_H_
  8. #define __GETREG_H_
  9. #include <windows.h>
  10. //Gets a handle to a registry key.
  11. LONG
  12. GetRegSubKey(
  13. IN OUT PHKEY phKey,
  14. IN PTCHAR cRegKey,
  15. IN DWORD dwIndex,
  16. OUT PTCHAR cRegSubKey,
  17. IN OUT PDWORD pdwRegSubKeySize
  18. );
  19. //Gets a value from a key out of the registry.
  20. LONG
  21. GetRegValue(
  22. IN OUT PHKEY phKey,
  23. IN PTCHAR cRegKey,
  24. IN PTCHAR cRegValueName,
  25. OUT PTCHAR cRegValue,
  26. IN OUT PDWORD pdwRegValueSize
  27. );
  28. //Gets a value from a key out of the registry.
  29. //overloaded to handle FILETIME directly
  30. LONG
  31. GetRegValue(
  32. IN OUT PHKEY phKey,
  33. IN PTCHAR cRegKey,
  34. IN PTCHAR cRegValueName,
  35. OUT PLONGLONG cRegValue,
  36. IN OUT PDWORD pdwRegValueSize
  37. );
  38. //Sets the value of a key in the registry.
  39. LONG
  40. SetRegValue(
  41. IN OUT PHKEY phKey,
  42. IN PTCHAR cRegKey,
  43. IN PTCHAR cRegValueName,
  44. OUT PTCHAR cRegValue,
  45. IN DWORD dwRegValueSize,
  46. IN DWORD dwKeyType
  47. );
  48. //Sets the value of a key in the registry.
  49. //overloaded to handle FILETIME directly
  50. LONG
  51. SetRegValue(
  52. IN OUT PHKEY phKey,
  53. IN PTCHAR cRegKey,
  54. IN PTCHAR cRegValueName,
  55. IN LONGLONG cRegValue,
  56. IN DWORD dwRegValueSize,
  57. IN DWORD dwKeyType
  58. );
  59. #endif