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.

254 lines
3.0 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. All rights reserved
  4. Abstract:
  5. This module provides ds utility functions
  6. Author:
  7. Revision History:
  8. --*/
  9. typedef struct _DSUPDATEDATA {
  10. BOOL bAllUpdated;
  11. BOOL bSleep;
  12. DWORD dwSleepTime;
  13. } DSUPDATEDATA, *PDSUPDATEDATA;
  14. HRESULT
  15. GetDefaultPublishPoint(
  16. HANDLE hPrinter,
  17. PWSTR *pszDN
  18. );
  19. HRESULT
  20. GetCommonName(
  21. HANDLE hPrinter,
  22. PWSTR pszServerName,
  23. PWSTR pszPrinterName,
  24. PWSTR pszDN,
  25. PWSTR *ppszCommonName
  26. );
  27. VOID
  28. GetUniqueCN(
  29. PWSTR pszDN,
  30. PWSTR *ppszCommonName,
  31. PWSTR pszPrinterName
  32. );
  33. BOOL
  34. PrinterPublishProhibited(
  35. );
  36. HRESULT
  37. GetGUID(
  38. IADs *pADs,
  39. PWSTR *ppszObjectGUID
  40. );
  41. HRESULT
  42. GetPublishPointFromGUID(
  43. HANDLE hPrinter,
  44. PWSTR pszObjectGUID,
  45. PWSTR *pszDN,
  46. PWSTR *pszCN,
  47. BOOL bGetDNAndCN
  48. );
  49. HRESULT
  50. GetPublishPoint(
  51. HANDLE hPrinter
  52. );
  53. HRESULT
  54. GetPrintQueueContainer(
  55. HANDLE hPrinter,
  56. IADsContainer **ppADsContainer,
  57. IADs **ppADs
  58. );
  59. HRESULT
  60. GetPrintQueue(
  61. HANDLE hPrinter,
  62. IADs **ppADs
  63. );
  64. BOOL
  65. ThisIsAColorPrinter(
  66. LPCTSTR lpstrName
  67. );
  68. BOOL
  69. ThisMachineIsADC(
  70. );
  71. DWORD
  72. GetDomainRoot(
  73. PWSTR *ppszDomainRoot
  74. );
  75. PWSTR
  76. CreateSearchString(
  77. PWSTR pszIn
  78. );
  79. BOOL
  80. ServerOnSite(
  81. PWSTR *ppszSites,
  82. ULONG cMySites,
  83. PWSTR pszServer
  84. );
  85. VOID
  86. GetSocketAddressesFromMachineName(
  87. PWSTR pszMachineName,
  88. PSOCKET_ADDRESS *ppSocketAddress,
  89. DWORD *nSocketAddresses
  90. );
  91. VOID
  92. AllocSplSockets(
  93. struct hostent *pHostEnt,
  94. PSOCKET_ADDRESS *ppSocketAddress,
  95. DWORD *nSocketAddresses
  96. );
  97. VOID
  98. FreeSplSockets(
  99. PSOCKET_ADDRESS pSocketAddress,
  100. DWORD nAddresses
  101. );
  102. BOOL
  103. ServerExists(
  104. PWSTR pszServerName
  105. );
  106. DWORD
  107. UNC2Server(
  108. PCWSTR pszUNC,
  109. PWSTR *ppszServer
  110. );
  111. HRESULT
  112. UnpublishByGUID(
  113. PINIPRINTER pIniPrinter
  114. );
  115. DWORD
  116. PruningInterval(
  117. );
  118. DWORD
  119. PruningRetries(
  120. );
  121. DWORD
  122. PruningRetryLog(
  123. );
  124. DWORD
  125. VerifyPublishedStatePolicy(
  126. );
  127. DWORD
  128. GetDSSleepInterval (
  129. HANDLE h
  130. );
  131. DWORD
  132. ImmortalPolicy(
  133. );
  134. VOID
  135. ServerThreadPolicy(
  136. BOOL bHaveDs
  137. );
  138. VOID
  139. SetPruningPriority(
  140. );
  141. DWORD
  142. PruneDownlevel(
  143. );
  144. HRESULT
  145. FQDN2Whatever(
  146. PWSTR pszIn,
  147. PWSTR *ppszOut,
  148. DS_NAME_FORMAT NameFormat
  149. );
  150. HRESULT
  151. GetClusterUser(
  152. IADs **ppADs
  153. );
  154. BOOL
  155. CheckPublishedPrinters(
  156. );
  157. BOOL
  158. CheckPublishedSpooler(
  159. HANDLE h,
  160. PINISPOOLER pIniSpooler
  161. );
  162. HRESULT
  163. FQDN2CNDN(
  164. PWSTR pszDCName,
  165. PWSTR pszFQDN,
  166. PWSTR *ppszCN,
  167. PWSTR *ppszDN
  168. );
  169. HRESULT
  170. BuildLDAPPath(
  171. PWSTR pszDC,
  172. PWSTR pszFQDN,
  173. PWSTR *ppszLDAPPath
  174. );
  175. PWSTR
  176. CreateEscapedString(
  177. PCWSTR pszIn,
  178. PCWSTR pszSpecialChars
  179. );
  180. PWSTR
  181. DevCapStrings2MultiSz(
  182. PWSTR pszDevCapString,
  183. DWORD nDevCapStrings,
  184. DWORD dwDevCapStringLength,
  185. DWORD *pcbBytes
  186. );
  187. DWORD
  188. Bind2DS(
  189. HANDLE *phDS,
  190. DOMAIN_CONTROLLER_INFO **ppDCI,
  191. ULONG Flags
  192. );
  193. DWORD
  194. DsCrackNamesStatus2Win32Error(
  195. DWORD dwStatus
  196. );