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.

74 lines
1.9 KiB

  1. ;begin_internal
  2. //=============================================================================
  3. // profmapp.h - Header file for user remap API.
  4. //
  5. // Copyright (c) Microsoft Corporation 1995-1999
  6. // All rights reserved
  7. //
  8. //=============================================================================
  9. //=============================================================================
  10. //
  11. // RemapUserProfile
  12. //
  13. // Changes the security of a user profile from one user to another.
  14. //
  15. // pComputer - Specifies the computer to run the API on
  16. // dwFlags - Specifies zero or more REMAP_PROFILE_* flags
  17. // pCurrentSid - Specifies the existing user's SID
  18. // pNewSid - Specifies the new SID for the profile
  19. //
  20. // Returns: TRUE if successful
  21. // FALSE if not.
  22. //
  23. //=============================================================================
  24. #define REMAP_PROFILE_NOOVERWRITE 0x0001
  25. #define REMAP_PROFILE_NOUSERNAMECHANGE 0x0002
  26. #define REMAP_PROFILE_KEEPLOCALACCOUNT 0x0004
  27. USERENVAPI
  28. BOOL
  29. WINAPI
  30. RemapUserProfile%(
  31. LPCTSTR% pComputer,
  32. DWORD dwFlags,
  33. PSID pSidCurrent,
  34. PSID pSidNew
  35. );
  36. BOOL
  37. WINAPI
  38. InitializeProfileMappingApi (
  39. VOID
  40. );
  41. //=============================================================================
  42. //
  43. // RemapAndMoveUser
  44. //
  45. // Transfers security settings and the user profile for one user to
  46. // another.
  47. //
  48. // pComputer - Specifies the computer to run the API on
  49. // dwFlags - Specifies zero or mor REMAP_PROFILE_* flags
  50. // pCurrentUser - Specifies the existing user's SID
  51. // pNewUser - Specifies the new SID for the profile
  52. //
  53. // Returns: TRUE if successful
  54. // FALSE if not.
  55. //
  56. //=============================================================================
  57. USERENVAPI
  58. BOOL
  59. WINAPI
  60. RemapAndMoveUser%(
  61. LPCTSTR% pComputer,
  62. DWORD dwFlags,
  63. LPCTSTR% pCurrentUser,
  64. LPCTSTR% pNewUser
  65. );
  66. ;end_internal