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.

235 lines
4.0 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1997, Microsoft Corporation
  4. //
  5. // File: ftsup.hxx
  6. //
  7. // Contents: ftsup.c prototypes, etc
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef _FTSUP_HXX
  11. #define _FTSUP_HXX
  12. VOID
  13. DumpBuf(
  14. PCHAR cp,
  15. ULONG len);
  16. DWORD
  17. DfsGetFtVol(
  18. PDFS_VOLUME_LIST pDfsVolList,
  19. LPWSTR wszFtDfsName,
  20. LPWSTR wszDcName,
  21. LPWSTR wszDomainName,
  22. PSEC_WINNT_AUTH_IDENTITY pAuthIdent);
  23. DWORD
  24. DfsGetDsBlob(
  25. LPWSTR wszFtDfsName,
  26. LPWSTR wszContainerName,
  27. LPWSTR wszDcName,
  28. PSEC_WINNT_AUTH_IDENTITY pAuthIdent,
  29. ULONG *pcbBlob,
  30. BYTE **ppBlob,
  31. LPWSTR **ppRootServers);
  32. DWORD
  33. DfsPutDsBlob(
  34. LPWSTR wszFtDfsName,
  35. LPWSTR wszContainerName,
  36. LPWSTR wszDcName,
  37. PSEC_WINNT_AUTH_IDENTITY pAuthIdent,
  38. ULONG cbBlob,
  39. BYTE *pBlob,
  40. LPWSTR *pRootServers);
  41. DWORD
  42. DfsGetVolList(
  43. ULONG cbBlob,
  44. BYTE *pBlob,
  45. PDFS_VOLUME_LIST pDfsVolList);
  46. DWORD
  47. DfsPutVolList(
  48. ULONG *pcbBlob,
  49. BYTE **ppBlob,
  50. PDFS_VOLUME_LIST pDfsVolList);
  51. VOID
  52. DfsFreeVolList(
  53. PDFS_VOLUME_LIST pDfsVolList);
  54. VOID
  55. DfsFreeVol(
  56. PDFS_VOLUME pVol);
  57. VOID
  58. DfsFreeRepl(
  59. PDFS_REPLICA_INFO pRepl);
  60. VOID
  61. DfsFreeRootLocalVol(
  62. PDFS_ROOTLOCALVOL pRootLocalVol,
  63. ULONG cRootLocalVol);
  64. DWORD
  65. DfsRecoverVolList(
  66. PDFS_VOLUME_LIST pDfsVolList);
  67. DWORD
  68. DfsVolDelete(
  69. PDFS_VOLUME_LIST pDfsVolList,
  70. ULONG iVol);
  71. DWORD
  72. DfsReplDeleteByIndex(
  73. PDFS_VOLUME pVol,
  74. ULONG iRepl);
  75. DWORD
  76. DfsReplDeleteByName(
  77. PDFS_VOLUME pVol,
  78. LPWSTR pwszServerName,
  79. LPWSTR pwszShareName);
  80. DWORD
  81. DfsDelReplDelete(
  82. PDFS_VOLUME pVol,
  83. ULONG iDelRepl);
  84. DWORD
  85. SerializeReplicaList(
  86. ULONG ReplCount,
  87. DFS_REPLICA_INFO *pReplicaInfo,
  88. FILETIME *pFtModification,
  89. ULONG DelReplCount,
  90. DFS_REPLICA_INFO *pDelReplicaInfo,
  91. FILETIME *pDelFtModification,
  92. ULONG *cBuffer,
  93. PBYTE *ppBuffer);
  94. DWORD
  95. UnSerializeReplicaList(
  96. ULONG *pReplCount,
  97. ULONG *pAllocatedReplCount,
  98. DFS_REPLICA_INFO **ppReplicaInfo,
  99. FILETIME **ppFtModification,
  100. BYTE **ppBuffer);
  101. DWORD
  102. SerializeReplica(
  103. DFS_REPLICA_INFO *pDfsReplicaInfo,
  104. FILETIME *pFtModfication,
  105. PBYTE buffer,
  106. ULONG size);
  107. ULONG
  108. GetReplicaMarshalSize(
  109. DFS_REPLICA_INFO *pDfsReplicaInfo,
  110. FILETIME *pFtModfication);
  111. VOID
  112. FreeLdapPkt(
  113. LDAP_PKT *pldapPkt);
  114. VOID
  115. DfsDumpVolList(
  116. PDFS_VOLUME_LIST pDfsVolList);
  117. VOID
  118. DfsDumpExitPtList(
  119. PDFS_ROOTLOCALVOL pRootLocalVol,
  120. ULONG cVolCount);
  121. VOID
  122. DfsViewVolList(
  123. PDFS_VOLUME_LIST pDfsVolList,
  124. ULONG Level);
  125. VOID
  126. DfsViewExitPtList(
  127. PDFS_ROOTLOCALVOL pRootLocalVol,
  128. ULONG cVolCount);
  129. VOID
  130. DfsDumpRootLocalVol(
  131. PDFS_ROOTLOCALVOL pRootLocalVol,
  132. ULONG cRootLocalVol);
  133. DWORD
  134. DfsGetSiteTable(
  135. PDFS_VOLUME_LIST VolList,
  136. PLDAP_OBJECT LdapObject);
  137. DWORD
  138. DfsGetVolume(
  139. PDFS_VOLUME pVolList,
  140. PLDAP_OBJECT LdapObject);
  141. DWORD
  142. DfsRemoveRootReplica(
  143. PDFS_VOLUME_LIST pDfsVolList,
  144. LPWSTR RootName);
  145. DWORD
  146. GetNetStorageInfo(
  147. PDFS_REPLICA_INFO pRepl,
  148. LPDFS_STORAGE_INFO pInfo,
  149. LPDWORD pcbInfo);
  150. DWORD
  151. GetNetInfoEx(
  152. PDFS_VOLUME pDfsVol,
  153. DWORD Level,
  154. LPDFS_INFO_3 pInfo,
  155. LPDWORD pcbInfo);
  156. DWORD
  157. DfspLdapOpen(
  158. LPWSTR wszDcName,
  159. PSEC_WINNT_AUTH_IDENTITY pAuthIdent,
  160. LDAP **ppldap,
  161. LPWSTR pwszObjectPrefix,
  162. LPWSTR *pwszObjectName);
  163. DWORD
  164. CmdDomUnmap(
  165. LPWSTR pwszDomDfsName,
  166. LPWSTR pwszRootName,
  167. LPWSTR pwszDcName,
  168. PSEC_WINNT_AUTH_IDENTITY pAuthIdent);
  169. PVOID
  170. MIDL_user_allocate(
  171. ULONG len);
  172. VOID
  173. MIDL_user_free(
  174. void * ptr);
  175. DWORD
  176. DfspGetPdc(
  177. LPWSTR pwszPdcName,
  178. LPWSTR pwszDomainName);
  179. DWORD
  180. DfsSetFtOnSite(
  181. LPWSTR pwszDomainName,
  182. LPWSTR pwszShareName,
  183. LPWSTR pwszLinkName,
  184. LPWSTR pwszDcName,
  185. PSEC_WINNT_AUTH_IDENTITY pAuthIdent,
  186. ULONG Set);
  187. LPWSTR
  188. GuidToStringEx(
  189. GUID *pGuid,
  190. LPWSTR pwszGuid);
  191. VOID
  192. StringToGuid(
  193. PWSTR pwszGuid,
  194. GUID *pGuid);
  195. #endif _FTSUP_HXX