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.

160 lines
2.8 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #define _NTDSAPI_
  4. #include <ntdsapi.h>
  5. static
  6. NTDSAPI
  7. DWORD
  8. WINAPI
  9. DsBindW(
  10. LPCWSTR DomainControllerName, // in, optional
  11. LPCWSTR DnsDomainName, // in, optional
  12. HANDLE *phDS
  13. )
  14. {
  15. return ERROR_PROC_NOT_FOUND;
  16. }
  17. static
  18. NTDSAPI
  19. DWORD
  20. WINAPI
  21. DsBindWithCredW(
  22. LPCWSTR DomainControllerName, // in, optional
  23. LPCWSTR DnsDomainName, // in, optional
  24. RPC_AUTH_IDENTITY_HANDLE AuthIdentity, // in, optional
  25. HANDLE *phDS
  26. )
  27. {
  28. return ERROR_PROC_NOT_FOUND;
  29. }
  30. static
  31. NTDSAPI
  32. DWORD
  33. WINAPI
  34. DsCrackNamesW(
  35. HANDLE hDS, // in
  36. DS_NAME_FLAGS flags, // in
  37. DS_NAME_FORMAT formatOffered, // in
  38. DS_NAME_FORMAT formatDesired, // in
  39. DWORD cNames, // in
  40. const LPCWSTR *rpNames, // in
  41. PDS_NAME_RESULTW *ppResult // out
  42. )
  43. {
  44. return ERROR_PROC_NOT_FOUND;
  45. }
  46. static
  47. NTDSAPI
  48. void
  49. WINAPI
  50. DsFreeNameResultW(
  51. PDS_NAME_RESULTW pResult // in
  52. )
  53. {
  54. return;
  55. }
  56. static
  57. NTDSAPI
  58. VOID
  59. WINAPI
  60. DsFreePasswordCredentials(
  61. RPC_AUTH_IDENTITY_HANDLE AuthIdentity
  62. )
  63. {
  64. return;
  65. }
  66. static
  67. NTDSAPI
  68. DWORD
  69. WINAPI
  70. DsGetRdnW(
  71. IN OUT LPCWCH *ppDN,
  72. IN OUT DWORD *pcDN,
  73. OUT LPCWCH *ppKey,
  74. OUT DWORD *pcKey,
  75. OUT LPCWCH *ppVal,
  76. OUT DWORD *pcVal
  77. )
  78. {
  79. return ERROR_PROC_NOT_FOUND;
  80. }
  81. static
  82. NTDSAPI
  83. DWORD
  84. WINAPI
  85. DsMakePasswordCredentialsW(
  86. LPCWSTR User,
  87. LPCWSTR Domain,
  88. LPCWSTR Password,
  89. RPC_AUTH_IDENTITY_HANDLE *pAuthIdentity
  90. )
  91. {
  92. return ERROR_PROC_NOT_FOUND;
  93. }
  94. static
  95. NTDSAPI
  96. DWORD
  97. WINAPI
  98. DsUnBindW(
  99. HANDLE *phDS // in
  100. )
  101. {
  102. return ERROR_PROC_NOT_FOUND;
  103. }
  104. static
  105. NTDSAPI
  106. DWORD
  107. WINAPI
  108. DsUnquoteRdnValueW(
  109. IN DWORD cQuotedRdnValueLength,
  110. IN LPCWCH psQuotedRdnValue,
  111. IN OUT DWORD *pcUnquotedRdnValueLength,
  112. OUT LPWCH psUnquotedRdnValue
  113. )
  114. {
  115. return ERROR_PROC_NOT_FOUND;
  116. }
  117. static
  118. NTDSAPI
  119. DWORD
  120. WINAPI
  121. DsWriteAccountSpnW(
  122. IN HANDLE hDS,
  123. IN DS_SPN_WRITE_OP Operation,
  124. IN LPCWSTR pszAccount,
  125. IN DWORD cSpn,
  126. IN LPCWSTR *rpszSpn
  127. )
  128. {
  129. return ERROR_PROC_NOT_FOUND;
  130. }
  131. //
  132. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  133. //
  134. DEFINE_PROCNAME_ENTRIES(ntdsapi)
  135. {
  136. DLPENTRY(DsBindW)
  137. DLPENTRY(DsBindWithCredW)
  138. DLPENTRY(DsCrackNamesW)
  139. DLPENTRY(DsFreeNameResultW)
  140. DLPENTRY(DsFreePasswordCredentials)
  141. DLPENTRY(DsGetRdnW)
  142. DLPENTRY(DsMakePasswordCredentialsW)
  143. DLPENTRY(DsUnBindW)
  144. DLPENTRY(DsUnquoteRdnValueW)
  145. DLPENTRY(DsWriteAccountSpnW)
  146. };
  147. DEFINE_PROCNAME_MAP(ntdsapi)