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.

90 lines
1.5 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: envvar.h
  3. *
  4. * Copyright (c) 1991, Microsoft Corporation
  5. *
  6. * Define apis in envvar.c
  7. *
  8. * History:
  9. * 12-09-91 Davidc Created.
  10. \***************************************************************************/
  11. //
  12. // Prototypes
  13. //
  14. BOOL
  15. AppendNTPathWithAutoexecPath(
  16. PVOID *pEnv,
  17. LPTSTR lpPathVariable,
  18. LPTSTR lpAutoexecPath
  19. );
  20. BOOL
  21. SetUserEnvironmentVariable(
  22. PVOID *pEnv,
  23. LPTSTR lpVariable,
  24. LPTSTR lpValue,
  25. BOOL bOverwrite
  26. );
  27. DWORD
  28. ExpandUserEnvironmentStrings(
  29. PVOID pEnv,
  30. LPTSTR lpSrc,
  31. LPTSTR lpDst,
  32. DWORD nSize
  33. );
  34. BOOL
  35. SetEnvironmentVariables(
  36. PGLOBALS pGlobals,
  37. LPTSTR pEnvVarSubkey,
  38. PVOID *pEnv
  39. );
  40. BOOL
  41. SetHomeDirectoryEnvVars(
  42. PVOID *pEnv,
  43. LPTSTR lpHomeDirectory,
  44. LPTSTR lpHomeDrive,
  45. LPTSTR lpHomeShare,
  46. LPTSTR lpHomePath,
  47. BOOL * pfDeepShare
  48. );
  49. BOOL
  50. ProcessAutoexec(
  51. PVOID *pEnv,
  52. LPTSTR lpPathVariable
  53. );
  54. VOID
  55. ChangeToHomeDirectory(
  56. PGLOBALS pGlobals,
  57. PVOID *pEnv,
  58. LPTSTR lpHomeDir,
  59. LPTSTR lpHomeDrive,
  60. LPTSTR lpHomeShare,
  61. LPTSTR lpHomePath,
  62. LPWSTR pszOldPath,
  63. BOOL DeepShare
  64. );
  65. BOOL
  66. OpenHKeyCurrentUser(
  67. PGLOBALS pGlobals
  68. );
  69. VOID
  70. CloseHKeyCurrentUser(
  71. PGLOBALS pGlobals
  72. );
  73. BOOL
  74. InitHKeyCurrentUserSupport(
  75. );
  76. VOID
  77. CleanupHKeyCurrentUserSupport(
  78. );