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.

69 lines
2.2 KiB

  1. #if !defined(INCL_REGISTRY)
  2. #define INCL_REGISTRY
  3. /* File: D:\WACKER\tdll\registry.h (Created: 27-Nov-1996 by cab)
  4. *
  5. * Copyright 1996 by Hilgraeve Inc. -- Monroe, MI
  6. * All rights reserved
  7. *
  8. * Description:
  9. * Declares the functions used for manipulating the Windows 95
  10. * system registry.
  11. *
  12. * An explanation of registry terms:
  13. *
  14. * The Windows 95 registry uses the terms "keys", "values",
  15. * and "data". The way the registry stores information can
  16. * best be described as a folder analogy.
  17. *
  18. * Keys are the equivalent of folders. The can contain other
  19. * keys (subkeys) or values.
  20. *
  21. * Values are the equivalent of documents. They contain data.
  22. *
  23. * The data is the actual contents of the document, i.e. it
  24. * is the information we are interested in.
  25. *
  26. * An example:
  27. *
  28. * HyperTerminal uses the registry to store the value of the
  29. * "Don't ask me this question" check box of the "Default Telnet
  30. * App" dialog.
  31. *
  32. * The key for this is "HKEY_LOCAL_MACHINE\SOFTWARE\Hilgraeve\
  33. * HyperTerminal PE\3.0".
  34. *
  35. * The value for this is "Telnet Check".
  36. *
  37. * The data for this will be either 0 or 1 depending on if the
  38. * user wants HT to check if it is the default telnet app.
  39. *
  40. * $Revision: 2 $
  41. * $Date: 3/26/02 8:59a $
  42. */
  43. // htRegQueryValue
  44. //
  45. // A generic function to get a value from the registry.
  46. // Returns 0 if successful, -1 if error.
  47. //
  48. INT_PTR htRegQueryValue(HKEY hKey, LPCTSTR pszSubKey, LPCTSTR pszValue,
  49. LPBYTE pData, LPDWORD pdwDataSize);
  50. // regSetStringValue
  51. //
  52. // A generic function to set the value of a registry entry. This value
  53. // is a null-terminated string. Returns 0 if successful, -1 if error.
  54. //
  55. INT_PTR regSetStringValue(HKEY hKey, LPCTSTR pszSubKey, LPCTSTR pszValue,
  56. LPCTSTR pszData);
  57. // regSetDwordValue
  58. //
  59. // A generic function to set the value of a registry entry. This value
  60. // is a doubleword (32 bits). Returns 0 if successful, -1 if error.
  61. //
  62. INT_PTR regSetDwordValue(HKEY hKey, LPCTSTR pszSubKey, LPCTSTR pszValue,
  63. DWORD dwData);
  64. #endif