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.

67 lines
1.4 KiB

  1. /*++
  2. Copyright(c) 1995 Microsoft Corporation
  3. MODULE NAME
  4. reg.h
  5. ABSTRACT
  6. Header file for registry routines for the
  7. automatic connection DLL.
  8. AUTHOR
  9. Anthony Discolo (adiscolo) 20-Mar-1995
  10. REVISION HISTORY
  11. Original version from Gurdeep
  12. --*/
  13. //
  14. // RAS registry keys.
  15. //
  16. #define RAS_REGBASE L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Network\\RemoteAccess"
  17. #define RAS_USEPBKEY L"UsePersonalPhonebook"
  18. #define RAS_PBKEY L"PersonalPhonebookPath"
  19. //
  20. // Registry key/value for default shell.
  21. //
  22. #define SHELL_REGKEY L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon"
  23. #define SHELL_REGVAL L"Shell"
  24. #define DEFAULT_SHELL L"explorer.exe"
  25. //
  26. // Autodial address registry key
  27. //
  28. #define AUTODIAL_REGADDRESSBASE L"Software\\Microsoft\\RAS AutoDial\\Addresses"
  29. #define AUTODIAL_REGTAGVALUE L"Tag"
  30. #define AUTODIAL_REGMTIMEVALUE L"LastModified"
  31. //
  32. // Autodial disabled addresses registry key
  33. //
  34. #define AUTODIAL_REGCONTROLBASE L"Software\\Microsoft\\RAS Autodial\\Control"
  35. #define AUTODIAL_REGDISABLEDADDRVALUE L"DisabledAddresses"
  36. HKEY
  37. GetHkeyCurrentUser(
  38. HANDLE hToken
  39. );
  40. BOOLEAN
  41. RegGetValue(
  42. IN HKEY hkey,
  43. IN LPTSTR pszKey,
  44. OUT PVOID *ppvData,
  45. OUT LPDWORD pdwcbData,
  46. OUT LPDWORD pdwType
  47. );
  48. BOOLEAN
  49. RegGetDword(
  50. IN HKEY hkey,
  51. IN LPTSTR pszKey,
  52. OUT LPDWORD pdwValue
  53. );
  54.