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.

120 lines
2.0 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1999, Microsoft Corporation
  4. //
  5. // File: misc.hxx
  6. //
  7. // Contents: misc.c prototypes, etc
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef _MISC_HXX
  11. #define _MISC_HXX
  12. DWORD
  13. CmdMupFlags(
  14. ULONG dwFsctrl,
  15. LPWSTR pwszHexValue);
  16. DWORD
  17. CmdMupReadReg(
  18. BOOLEAN fSwDfs);
  19. DWORD
  20. CmdDfsAlt(
  21. LPWSTR pwszServerName);
  22. DWORD
  23. AtoHex(
  24. LPWSTR pwszHexValue,
  25. PDWORD pdwErr);
  26. DWORD
  27. AtoDec(
  28. LPWSTR pwszDecValue,
  29. PDWORD pdwErr);
  30. DWORD
  31. CmdCscOnLine(
  32. LPWSTR pwszServerName);
  33. DWORD
  34. CmdCscOffLine(
  35. LPWSTR pwszServerName);
  36. VOID
  37. ErrorMessage(
  38. IN HRESULT hr,
  39. ...);
  40. DWORD
  41. DfspIsDomainName(
  42. LPWSTR pwszDomainName,
  43. LPWSTR pwszDcName,
  44. PBOOLEAN pIsDomainName);
  45. DWORD
  46. DfspParseName(
  47. LPWSTR pwszDfsRoot,
  48. LPWSTR *ppwszDfsName,
  49. LPWSTR *ppwszShareName);
  50. DWORD
  51. DfspGetLinkName(
  52. LPWSTR pwszDfsRoot,
  53. LPWSTR *ppwszLinkName);
  54. DWORD
  55. CmdAddRoot(
  56. BOOLEAN DomDfs,
  57. LPWSTR pwszServerName,
  58. LPWSTR pwszShareName,
  59. LPWSTR pwszRootName,
  60. LPWSTR pwszComment);
  61. DWORD
  62. CmdRemRoot(
  63. BOOLEAN DomDfs,
  64. LPWSTR pwszServerName,
  65. LPWSTR pwszShareName,
  66. LPWSTR pwszLogicalName);
  67. DWORD
  68. CmdUnmapRootReplica(
  69. LPWSTR DomainDfsPath,
  70. LPWSTR ReplicaServerName,
  71. LPWSTR ReplicaShareName );
  72. DWORD
  73. CmdClean(
  74. LPWSTR HostServerName,
  75. LPWSTR RootShareName );
  76. DWORD
  77. ReSynchronizeRootTargetsFromPath(
  78. class DfsPathName *pDfsPathString);
  79. DWORD
  80. ReSynchronizeRootTargets(
  81. LPWSTR pDfsPathString);
  82. BOOLEAN
  83. SummarizeImportCmd( VOID );
  84. VOID
  85. ShowVerboseInformation( PWCHAR format, ...);
  86. VOID
  87. ShowDebugInformation( PWCHAR format, ...);
  88. VOID
  89. DfsPrintToFile(HANDLE FileHandle,BOOLEAN ScriptOut, PWCHAR format,... );
  90. DWORD
  91. CreateDfsFile(LPWSTR FileName, PHANDLE pHandle);
  92. #endif _MISC_HXX