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.

287 lines
5.6 KiB

  1. /*++
  2. * File name:
  3. *
  4. * Contents:
  5. * Extra functions exported by tclient.dll
  6. *
  7. * Copyright (C) 1998-1999 Microsoft Corp.
  8. --*/
  9. #ifndef _EXTRAEXP_
  10. #define _EXTRAEXP_
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #ifndef PROTOCOLAPI
  15. #define PROTOCOLAPI __declspec(dllimport)
  16. #endif
  17. #ifndef _CONNECTINFO_DEFINED
  18. typedef void *PCONNECTINFO;
  19. #endif
  20. #define TSFLAG_COMPRESSION 1
  21. #define TSFLAG_BITMAPCACHE 2
  22. #define TSFLAG_FULLSCREEN 4
  23. #define TSFLAG_CONSOLE 8
  24. #define TSFLAG_RCONSOLE 16
  25. #define TSFLAG_DRIVES 32
  26. #define TSFLAG_PORTS 64
  27. PROTOCOLAPI
  28. LPCSTR
  29. SMCAPI
  30. SCConnectEx(
  31. LPCWSTR lpszServerName,
  32. LPCWSTR lpszUserName,
  33. LPCWSTR lpszPassword,
  34. LPCWSTR lpszDomain,
  35. LPCWSTR lpszShell,
  36. INT xRes,
  37. INT yRes,
  38. INT ConnectionFlags,
  39. INT Bpp,
  40. INT AudioOpts,
  41. PCONNECTINFO *ppCI);
  42. PROTOCOLAPI
  43. LPCSTR
  44. SMCAPI
  45. SCCheck(
  46. PCONNECTINFO ConnectionInfo,
  47. LPCSTR szCmd,
  48. LPCWSTR szwParam
  49. );
  50. PROTOCOLAPI
  51. LPCSTR
  52. SMCAPI
  53. SCSendtextAsMsgs(
  54. PCONNECTINFO ConnectionInfo,
  55. LPCWSTR szLine
  56. );
  57. PROTOCOLAPI
  58. LPCSTR
  59. SMCAPI
  60. SCSaveClipboard(
  61. PCONNECTINFO ConnectionInfo,
  62. LPCSTR szFormatName,
  63. LPCSTR szFileName
  64. );
  65. PROTOCOLAPI
  66. BOOL
  67. SMCAPI
  68. SCIsDead(
  69. PCONNECTINFO pCI
  70. );
  71. PROTOCOLAPI
  72. LPCSTR
  73. SMCAPI
  74. SCClientTerminate(
  75. PCONNECTINFO pCI
  76. );
  77. /* ASCII versions */
  78. PROTOCOLAPI
  79. LPCSTR
  80. SMCAPI
  81. SCConnectA (
  82. CHAR *lpszServerName,
  83. CHAR *lpszUserName,
  84. CHAR *lpszPassword,
  85. CHAR *lpszDomain,
  86. INT xResolution,
  87. INT yResolution,
  88. PCONNECTINFO *ppConnectData
  89. );
  90. PROTOCOLAPI
  91. LPCSTR
  92. SMCAPI
  93. SCConnectExA (
  94. CHAR *lpszServerName,
  95. CHAR *lpszUserName,
  96. CHAR *lpszPassword,
  97. CHAR *lpszDomain,
  98. CHAR *lpszShell,
  99. INT xResolution,
  100. INT yResolution,
  101. INT ConnectionFlags,
  102. INT Bpp,
  103. INT AudioOpts,
  104. PCONNECTINFO *ppConnectData
  105. );
  106. PROTOCOLAPI
  107. LPCSTR
  108. SMCAPI
  109. SCStartA(
  110. PCONNECTINFO pConnectData,
  111. CHAR *command
  112. );
  113. PROTOCOLAPI
  114. LPCSTR
  115. SMCAPI
  116. SCCheckA(
  117. PCONNECTINFO pConnectData,
  118. CHAR *command,
  119. CHAR *param
  120. );
  121. PROTOCOLAPI
  122. LPCSTR
  123. SMCAPI
  124. SCSendtextAsMsgsA(
  125. PCONNECTINFO pConnectData,
  126. CHAR *line
  127. );
  128. PROTOCOLAPI
  129. LPCSTR
  130. SMCAPI
  131. SCSwitchToProcess(
  132. PCONNECTINFO pCI,
  133. LPCWSTR lpszParam
  134. );
  135. PROTOCOLAPI
  136. LPCSTR
  137. SMCAPI
  138. SCSendMouseClick(
  139. PCONNECTINFO pCI,
  140. UINT xPos,
  141. UINT yPos
  142. );
  143. PROTOCOLAPI
  144. UINT
  145. SMCAPI
  146. SCGetSessionId(
  147. PCONNECTINFO pCI
  148. );
  149. PROTOCOLAPI
  150. LPCSTR
  151. SMCAPI
  152. SCGetFeedbackString(
  153. PCONNECTINFO pCI,
  154. LPWSTR szBuff,
  155. UINT maxBuffChars
  156. );
  157. PROTOCOLAPI
  158. LPCSTR
  159. SMCAPI
  160. SCGetFeedback(
  161. PCONNECTINFO pCI,
  162. LPWSTR *pszBufs,
  163. UINT *pnFBCount,
  164. UINT *pnFBMaxStrLen
  165. );
  166. PROTOCOLAPI
  167. LPCSTR
  168. SMCAPI
  169. SCCallDll(
  170. PCONNECTINFO pCI,
  171. LPCSTR lpszDllExport,
  172. LPCWSTR lpszParam
  173. );
  174. PROTOCOLAPI
  175. LPCSTR
  176. SMCAPI
  177. SCAttach(
  178. HWND hClient,
  179. LONG_PTR lClientCookie,
  180. PCONNECTINFO *ppCI
  181. );
  182. PROTOCOLAPI
  183. LPCSTR
  184. SMCAPI
  185. SCDetach(
  186. PCONNECTINFO pCI
  187. );
  188. LPCSTR
  189. SMCAPI
  190. SCDoUntil(
  191. PCONNECTINFO pCI,
  192. LPCWSTR lpszParam
  193. );
  194. //
  195. // Function returns Handle to the Client Window
  196. //
  197. PROTOCOLAPI
  198. HWND
  199. SMCAPI
  200. SCGetClientWindowHandle(
  201. PCONNECTINFO pCI
  202. );
  203. VOID
  204. SMCAPI
  205. SCFreeMem(
  206. PVOID pMem
  207. );
  208. PROTOCOLAPI
  209. BOOL
  210. SMCAPI
  211. SCOpenClipboard(
  212. HWND hwnd
  213. );
  214. PROTOCOLAPI
  215. BOOL
  216. SMCAPI
  217. SCCloseClipboard(
  218. VOID
  219. );
  220. PROTOCOLAPI
  221. LPCSTR SMCAPI SCSetClientTopmost(PCONNECTINFO pCI, LPCWSTR lpszParam);
  222. /* Data types for pointers to ANSI versions */
  223. /* Pointers to UNICODE versions are defined */
  224. /* in protocol.h. */
  225. /* SCConnectA and SCStartA are the only two */
  226. /* functions that need ANSI pointers. */
  227. /* */
  228. /* Added on 12/02/99 by maximou */
  229. /* SCCheckA added on 01/26/00 by maximou */
  230. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCCONNECTA)(LPCSTR, LPCSTR, LPCSTR, LPCSTR,
  231. const int, const int, void **);
  232. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCSTARTA)(void *, LPCSTR);
  233. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCCHECKA)(void *, LPSTR, LPSTR);
  234. /* Data types for pointers to UNICODE functions declared in this file */
  235. /* Added on 01/26/00 by maximou */
  236. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCCHECK)(void *, LPCSTR, LPCWSTR);
  237. /* Data types for new functions declared in this file */
  238. /* Both UNICODE and ANSI versions have been added */
  239. /* Added on 09/11-12/00 by maximou */
  240. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCCONNECTEX)(LPCWSTR, LPCWSTR, LPCWSTR,
  241. LPCWSTR, LPCWSTR, INT, INT, INT, INT, INT, PVOID*);
  242. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCCONNECTEXA)(LPCSTR, LPCSTR, LPCSTR,
  243. LPCSTR, LPCSTR, INT, INT, INT, INT, INT, PVOID*);
  244. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCSENDTEXTASMSGS)(PVOID, LPCWSTR);
  245. typedef PROTOCOLAPI LPCSTR (SMCAPI *PFNSCSENDTEXTASMSGSA)(PVOID, CHAR *);
  246. #ifdef __cplusplus
  247. }
  248. #endif
  249. #endif // _EXTRAEXP_