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.

184 lines
3.2 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. //
  4. // Microsoft Windows
  5. // Copyright (C) Microsoft Corporation, 1992 - 1997
  6. //
  7. // File: adsi.h
  8. //
  9. // Contents: Microsoft ADs LDAP Provider DSObject
  10. //
  11. //
  12. // History: 02-20-97 yihsins Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. HRESULT
  19. ADSIOpenDSObject(
  20. LPWSTR pszDNName,
  21. LPWSTR pszUserName,
  22. LPWSTR pszPassword,
  23. LONG lnReserved,
  24. PHANDLE phDSObject
  25. );
  26. HRESULT
  27. ADSICloseDSObject(
  28. HANDLE hDSObject
  29. );
  30. HRESULT
  31. ADSISetObjectAttributes(
  32. HANDLE hDSObject,
  33. PADS_ATTR_INFO pAttributeEntries,
  34. DWORD dwNumAttributes,
  35. DWORD *pdwNumAttributesModified
  36. );
  37. HRESULT
  38. ADSIGetObjectAttributes(
  39. HANDLE hDSObject,
  40. LPWSTR *pAttributeNames,
  41. DWORD dwNumberAttributes,
  42. PADS_ATTR_INFO *ppAttributeEntries,
  43. DWORD * pdwNumAttributesReturned
  44. );
  45. HRESULT
  46. ADSICreateDSObject(
  47. HANDLE hParentDSObject,
  48. LPWSTR pszRDNName,
  49. PADS_ATTR_INFO pAttributeEntries,
  50. DWORD dwNumAttributes
  51. );
  52. HRESULT
  53. ADSIDeleteDSObject(
  54. HANDLE hParentDSObject,
  55. LPWSTR pszRDNName
  56. );
  57. BOOL
  58. FreeADsMem(
  59. LPVOID pMem
  60. );
  61. HRESULT
  62. ADSISetSearchPreference(
  63. HANDLE hDSObject,
  64. IN PADS_SEARCHPREF_INFO pSearchPrefs,
  65. IN DWORD dwNumPrefs
  66. );
  67. HRESULT
  68. ADSIExecuteSearch(
  69. HANDLE hDSObject,
  70. IN LPWSTR pszSearchFilter,
  71. IN LPWSTR * pAttributeNames,
  72. IN DWORD dwNumberAttributes,
  73. OUT PADS_SEARCH_HANDLE phSearchHandle
  74. );
  75. HRESULT
  76. ADSIAbandonSearch(
  77. HANDLE hDSObject,
  78. IN PADS_SEARCH_HANDLE phSearchHandle
  79. );
  80. HRESULT
  81. ADSICloseSearchHandle (
  82. HANDLE hDSObject,
  83. IN ADS_SEARCH_HANDLE hSearchHandle
  84. );
  85. HRESULT
  86. ADSIGetFirstRow(
  87. HANDLE hDSObject,
  88. IN ADS_SEARCH_HANDLE hSearchHandle
  89. );
  90. HRESULT
  91. ADSIGetNextRow(
  92. HANDLE hDSObject,
  93. IN ADS_SEARCH_HANDLE hSearchHandle
  94. );
  95. HRESULT
  96. ADSIGetPreviousRow(
  97. HANDLE hDSObject,
  98. IN ADS_SEARCH_HANDLE hSearchHandle
  99. );
  100. HRESULT
  101. ADSIGetColumn(
  102. HANDLE hDSObject,
  103. IN ADS_SEARCH_HANDLE hSearchHandle,
  104. IN LPWSTR pszColumnName,
  105. OUT PADS_SEARCH_COLUMN pColumn
  106. );
  107. HRESULT
  108. ADSIGetNextColumnName(
  109. HANDLE hDSObject,
  110. IN ADS_SEARCH_HANDLE hSearchHandle,
  111. OUT LPWSTR * ppszColumnName
  112. );
  113. HRESULT
  114. ADSIFreeColumn(
  115. HANDLE hDSObject,
  116. IN PADS_SEARCH_COLUMN pColumn
  117. );
  118. HRESULT
  119. ADSIEnumAttributes(
  120. HANDLE hDSObject,
  121. LPWSTR * ppszAttrNames,
  122. DWORD dwNumAttributes,
  123. PADS_ATTR_DEF * ppAttrDefinition,
  124. DWORD * pdwNumAttributes
  125. );
  126. HRESULT
  127. ADSICreateAttributeDefinition(
  128. HANDLE hDSObject,
  129. LPWSTR pszAttributeName,
  130. PADS_ATTR_DEF pAttributeDefinition
  131. );
  132. HRESULT
  133. ADSIWriteAttributeDefinition(
  134. HANDLE hDSObject,
  135. LPWSTR pszAttributeName,
  136. PADS_ATTR_DEF pAttributeDefinition
  137. );
  138. HRESULT
  139. ADSIDeleteAttributeDefinition(
  140. HANDLE hDSObject,
  141. LPWSTR pszAttributeName
  142. );
  143. HRESULT
  144. ADSIModifyRdn(
  145. HANDLE hDSObject,
  146. LPWSTR pszOldRdn,
  147. LPWSTR pszNewRdn
  148. );
  149. #ifdef __cplusplus
  150. }
  151. #endif