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.

219 lines
3.6 KiB

  1. __foldwin32sstuff __foldwin32sstuff;
  2. foldstyleinitialization = true;
  3. enablemapdirect3216 = true;
  4. flatthunks = true;
  5. /*****************************************************************/
  6. /** Microsoft Windows 4.00 **/
  7. /** Copyright (C) Microsoft Corp., 1994-1994 **/
  8. /*****************************************************************/
  9. /*
  10. * API thunks for Netware 16bit APIs called from Win32 DLL
  11. */
  12. #include "types.thk"
  13. /*
  14. * Should be syncronized with dev\inc\msnwerr.h
  15. */
  16. typedef long NW_STATUS;
  17. NW_STATUS ThkNetWGetRequesterVersion( LPBYTE majorVersion,
  18. LPBYTE minorVersion,
  19. LPBYTE revision)
  20. {
  21. majorVersion=output;
  22. minorVersion=output;
  23. revision =output;
  24. }
  25. /*
  26. * Global directory services context management
  27. *
  28. */
  29. NW_STATUS ThkNDSSetNameContext( LPSTR NameContext, BOOL fGlobal)
  30. {
  31. NameContext = input;
  32. }
  33. NW_STATUS ThkNDSGetNameContext( LPSTR NameContext)
  34. {
  35. NameContext = output;
  36. }
  37. UINT ThkNetWGetNumConnEntries(VOID );
  38. NW_STATUS
  39. ThkNetWGetPreferredName(
  40. UINT ConnectionType,
  41. LPSTR pszBuf
  42. )
  43. {
  44. pszBuf= output;
  45. }
  46. NW_STATUS
  47. ThkNetWSetPreferredName(
  48. UINT ConnectionType,
  49. LPSTR pszBuf
  50. )
  51. {
  52. pszBuf= input;
  53. }
  54. NW_STATUS
  55. ThkNetWGetPreferredConnID(
  56. UINT ConnectionType,
  57. UINT* phConn
  58. )
  59. {
  60. phConn = output;
  61. }
  62. NW_STATUS
  63. ThkNetWAttachByName(
  64. UINT ConnectionType,
  65. LPSTR pszResourceName,
  66. UINT* phConn
  67. )
  68. {
  69. pszResourceName= input;
  70. phConn=output;
  71. }
  72. NW_STATUS
  73. ThkNetWAttachByAddress(
  74. UINT ConnectionType,
  75. PBYTE pbAddress,
  76. UINT* phConn
  77. )
  78. {
  79. pbAddress= input;
  80. phConn=output;
  81. }
  82. NW_STATUS
  83. ThkNetWGetConnectionLocalStatus(
  84. UINT hConn,
  85. LPVOID pConnInfo,
  86. LPSTR pszResourceName
  87. )
  88. {
  89. pConnInfo= input;
  90. pszResourceName=output;
  91. }
  92. NW_STATUS
  93. ThkNetWGetConnectionRemoteInformation(
  94. UINT hConn,
  95. LPVOID pConnInfo,
  96. LPSTR pszResourceName
  97. )
  98. {
  99. pConnInfo=output;
  100. pszResourceName=output;
  101. }
  102. //
  103. // For tree - cleans up all NDS connections , for server - just this one
  104. //
  105. NW_STATUS
  106. ThkNetWDetachResource(
  107. UINT ConnectionType,
  108. UINT hConn
  109. )
  110. {
  111. }
  112. NW_STATUS
  113. ThkNetWLicenseConnection(
  114. UINT *phConn
  115. )
  116. {
  117. phConn= input;
  118. }
  119. NW_STATUS
  120. ThkNetWUnLicenseConnection(
  121. UINT *phConn
  122. )
  123. {
  124. phConn= input;
  125. }
  126. /*
  127. * Authetication APIs
  128. * ------------------
  129. *
  130. *
  131. */
  132. NW_STATUS
  133. ThkNDSIsLoggedIn(
  134. LPSTR pszUserName
  135. )
  136. {
  137. pszUserName=output;
  138. }
  139. NW_STATUS
  140. ThkNDSLogin(
  141. LPSTR pszUserName,
  142. LPSTR pszPassword
  143. )
  144. {
  145. pszUserName=output;
  146. pszPassword=output;
  147. }
  148. NW_STATUS
  149. ThkNDSLogout(VOID)
  150. {
  151. }
  152. NW_STATUS
  153. ThkNDSAuthenticateToServer(UINT hConn)
  154. {
  155. }
  156. NW_STATUS
  157. ThkNDSCanonicalizeName(
  158. UINT flags,
  159. LPSTR pszName,
  160. LPSTR pszCanonicalName
  161. )
  162. {
  163. pszCanonicalName=output;
  164. }
  165. NW_STATUS
  166. ThkNDSAbbreviateName(
  167. UINT flags,
  168. LPSTR pszName,
  169. LPSTR pszCanonicalName
  170. )
  171. {
  172. pszCanonicalName=output;
  173. }