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.

112 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: moveme.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 5-21-97 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __MOVEME_H__
  18. #define __MOVEME_H__
  19. #include <nt.h>
  20. #include <ntrtl.h>
  21. #include <nturtl.h>
  22. #include <ntlsa.h>
  23. #include <windows.h>
  24. #include <commctrl.h>
  25. #include <userenv.h>
  26. #include <userenvp.h>
  27. #include <lm.h>
  28. #include <dsgetdc.h>
  29. #include <lmjoin.h>
  30. #include <stdio.h>
  31. #include <string.h>
  32. #include <wchar.h>
  33. #include "debug.h"
  34. #include "strings.h"
  35. #define MOVE_CHANGE_DOMAIN 0x00000001
  36. #define MOVE_COPY_PROFILE 0x00000002
  37. #define MOVE_DO_PROFILE 0x00000004
  38. #define MOVE_UPDATE_SECURITY 0x00000008
  39. #define MOVE_MAKE_ROAM 0x00000010
  40. #define MOVE_NO_UI 0x80000000
  41. #define MOVE_SOURCE_SUPPLIED 0x40000000
  42. #define MOVE_NO_PROFILE 0x20000000
  43. #define MOVE_WHACK_PSTORE 0x10000000
  44. extern DWORD MoveOptions ;
  45. BOOL
  46. WINAPI
  47. GetUserProfileDirectoryFromSid(
  48. PSID Sid,
  49. LPTSTR lpProfileDir,
  50. LPDWORD lpcchSize
  51. );
  52. BOOL
  53. CreateUiThread(
  54. VOID
  55. );
  56. VOID
  57. StopUiThread(
  58. VOID
  59. );
  60. VOID
  61. RaiseUi(
  62. HWND Parent,
  63. LPWSTR Title
  64. );
  65. VOID
  66. UpdateUi(
  67. DWORD StringId,
  68. DWORD Percentage
  69. );
  70. LONG
  71. MyRegSaveKey(
  72. HKEY Key,
  73. LPTSTR File,
  74. LPSECURITY_ATTRIBUTES lpsa
  75. );
  76. BOOL
  77. GetPrimaryDomain(
  78. PWSTR Domain
  79. );
  80. BOOL
  81. SetUserProfileDirectory(
  82. PSID Base,
  83. PSID Copy
  84. );
  85. VOID
  86. Fail(
  87. HWND hWnd,
  88. PWSTR Failure,
  89. PWSTR Description,
  90. DWORD Code,
  91. PWSTR Message
  92. );
  93. #endif