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.

223 lines
3.9 KiB

  1. #include <olectl.h>
  2. [
  3. uuid(de757ed9-65c4-4e6e-a524-7b15f4eda8c2),
  4. dual,
  5. helpstring("TClientIni Interface")
  6. ]
  7. interface ITClientIni : IDispatch
  8. {
  9. import "oaidl.idl";
  10. HRESULT
  11. SetFile (
  12. [in] BSTR FileName
  13. );
  14. HRESULT
  15. GetFile (
  16. [out, retval] BSTR *FileName
  17. );
  18. HRESULT
  19. SetValue (
  20. [in] BSTR Section,
  21. [in] BSTR Value,
  22. [in] BSTR Data
  23. );
  24. HRESULT
  25. GetValue (
  26. [in] BSTR Section,
  27. [in] BSTR Value,
  28. [out, retval] BSTR *Data
  29. );
  30. };
  31. [
  32. object,
  33. uuid(b9d7e61a-b0f6-4d29-93ec-cae10c2a56fb),
  34. dual,
  35. helpstring("ITClientApi Interface"),
  36. pointer_default(unique)
  37. ]
  38. interface ITClientApi : IDispatch
  39. //{
  40. // import "oaidl.idl";
  41. // [propput, id(DISPID_CAPTION)]
  42. // HRESULT Caption([in]BSTR pCaption);
  43. // [propget, id(DISPID_CAPTION)]
  44. // HRESULT Caption([out,retval]BSTR* ppCaption);
  45. // HRESULT Refresh();
  46. //};
  47. {
  48. import "oaidl.idl";
  49. // [propput]
  50. // HRESULT
  51. // Error (
  52. // [in] BSTR Message
  53. // );
  54. [propget]
  55. HRESULT
  56. Error (
  57. [out,retval] BSTR *Message
  58. );
  59. HRESULT
  60. SaveClipboard (
  61. [in] BSTR FormatName,
  62. [in] BSTR FileName
  63. );
  64. HRESULT
  65. IsDead (
  66. [out, retval] BOOL *Dead
  67. );
  68. HRESULT
  69. SendTextAsMessages (
  70. [in] BSTR Text
  71. );
  72. HRESULT
  73. Connect2 (
  74. [in] BSTR ServerName,
  75. [in] BSTR UserName,
  76. [in] BSTR Password,
  77. [in] BSTR Domain,
  78. [in] BSTR Shell,
  79. [in] ULONG XResolution,
  80. [in] ULONG YResolution,
  81. [in] ULONG ConnectionFlags,
  82. [in] ULONG ColorDepth,
  83. [in] ULONG AudioOptions
  84. );
  85. HRESULT
  86. GetFeedbackString (
  87. [out, retval] BSTR *FeedbackString
  88. );
  89. HRESULT
  90. GetFeedback (
  91. [out, retval] SAFEARRAY(BSTR) *Feedback
  92. );
  93. HRESULT
  94. ClientTerminate (
  95. );
  96. HRESULT
  97. Check (
  98. [in] BSTR Command,
  99. [in] BSTR Parameter
  100. );
  101. HRESULT
  102. Clipboard (
  103. [in] ULONG Command,
  104. [in] BSTR FileName
  105. );
  106. HRESULT
  107. Connect (
  108. [in] BSTR ServerName,
  109. [in] BSTR UserName,
  110. [in] BSTR Password,
  111. [in] BSTR Domain,
  112. [in] ULONG XResolution,
  113. [in] ULONG YResolution
  114. );
  115. HRESULT
  116. Disconnect (
  117. );
  118. HRESULT
  119. Logoff (
  120. );
  121. HRESULT
  122. SendData (
  123. [in] UINT Message,
  124. [in] UINT_PTR WParameter,
  125. [in] LONG_PTR LParameter
  126. );
  127. HRESULT
  128. Start (
  129. [in] BSTR AppName
  130. );
  131. HRESULT
  132. SwitchToProcess (
  133. [in] BSTR WindowTitle
  134. );
  135. HRESULT
  136. SendMouseClick (
  137. [in] ULONG XPosition,
  138. [in] ULONG YPosition
  139. );
  140. HRESULT
  141. GetSessionId (
  142. [out, retval] ULONG *SessionId
  143. );
  144. HRESULT
  145. CloseClipboard (
  146. );
  147. HRESULT
  148. OpenClipboard (
  149. [in] HWND Window
  150. );
  151. HRESULT
  152. SetClientTopmost (
  153. [in] BOOL Enable
  154. );
  155. HRESULT
  156. Attach (
  157. [in] HWND Window,
  158. [in] LONG_PTR Cookie
  159. );
  160. HRESULT
  161. Detach (
  162. );
  163. HRESULT
  164. GetIni (
  165. [out, retval] ITClientIni **Ini
  166. );
  167. HRESULT
  168. GetClientWindowHandle (
  169. [out, retval] HWND *Window
  170. );
  171. };
  172. [
  173. uuid(ac3b692d-98ab-40a7-8091-17186c1a5599),
  174. version(1.0),
  175. helpstring("TClient 1.0 Type Library")
  176. ]
  177. library TCLIENTAXLib
  178. {
  179. importlib("stdole2.tlb");
  180. [
  181. uuid(c52b5b9e-e87b-4fd3-999f-ce742b85bc31),
  182. helpstring("TClient Class")
  183. ]
  184. coclass CTClient
  185. {
  186. [default] interface ITClientApi;
  187. };
  188. };