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.

83 lines
3.0 KiB

  1. /*---------------------------------------------------------------------------
  2. File: ARUtil.hpp
  3. Comments: Definitions for helper routines and command-line parsing for Account Replicator
  4. (c) Copyright 1995-1998, Mission Critical Software, Inc., All Rights Reserved
  5. Proprietary and confidential to Mission Critical Software, Inc.
  6. REVISION LOG ENTRY
  7. Revision By: Christy Boles
  8. Revised on 6/23/98 4:31:22 PM
  9. ---------------------------------------------------------------------------
  10. */
  11. #include "UserCopy.hpp"
  12. int
  13. CompVal(
  14. const TNode * tn, //in -tree node
  15. const void * actname //in -name to look for
  16. );
  17. int
  18. CompNode(
  19. const TNode * v1, //in -first node to compare
  20. const TNode * v2 //in -second node to compare
  21. );
  22. int
  23. CompSid(
  24. const TNode * v1, // in -first node to compare
  25. const TNode * v2 // in -second node to compare
  26. );
  27. int
  28. CompSidVal(
  29. const TNode * tn, // in -node to compare
  30. const void * pVal // in -value to compare
  31. );
  32. //------------------------------------------------------------------------------
  33. // CopyServerName: Ensures that server name is in UNC form and checks its len
  34. //------------------------------------------------------------------------------
  35. DWORD
  36. CopyServerName(
  37. TCHAR * uncServ ,// out-UNC server name
  38. TCHAR const * server // in -\\server or domain name
  39. );
  40. BOOL // ret-FALSE is addto: is not a group account
  41. AddToGroupResolveType(
  42. Options * options // i/o-options
  43. );
  44. BOOL // ret-TRUE if the password is successfully generated
  45. PasswordGenerate(
  46. Options const * options, // in -includes PW Generating options
  47. WCHAR * password, // out -buffer for generated password
  48. DWORD dwPWBufferLength, // in -DIM length of password buffer
  49. BOOL isAdminAccount = FALSE // in -Whether to use the Admin rules
  50. );
  51. //------------------------------------------------------------------------------
  52. // ParseParms: parse out source & target servers plus any switches.
  53. //------------------------------------------------------------------------------
  54. BOOL // ret-TRUE=success
  55. ParseParms(
  56. TCHAR const ** argv ,// in -argument list
  57. Options * options // out-options
  58. );
  59. PSID
  60. GetWellKnownSid(
  61. DWORD wellKnownAccount, // in - which well known account to get sid for (constants defined in UserCopy.hpp)
  62. Options * opt, // in - options structure containing source and target domains
  63. BOOL bTarget = FALSE // in - flag, whether to use source or target domain information
  64. );