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.

453 lines
10 KiB

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "webbrwsr.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CWebBrowser
  8. IMPLEMENT_DYNCREATE(CWebBrowser, CWnd)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CWebBrowser properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CWebBrowser operations
  13. void CWebBrowser::GoBack()
  14. {
  15. InvokeHelper(0x64, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  16. }
  17. void CWebBrowser::GoForward()
  18. {
  19. InvokeHelper(0x65, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  20. }
  21. void CWebBrowser::GoHome()
  22. {
  23. InvokeHelper(0x66, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  24. }
  25. void CWebBrowser::GoSearch()
  26. {
  27. InvokeHelper(0x67, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  28. }
  29. void CWebBrowser::Navigate(LPCTSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers)
  30. {
  31. static BYTE parms[] =
  32. VTS_BSTR VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT;
  33. InvokeHelper(0x68, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  34. URL, Flags, TargetFrameName, PostData, Headers);
  35. }
  36. void CWebBrowser::Refresh()
  37. {
  38. InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  39. }
  40. void CWebBrowser::Refresh2(VARIANT* Level)
  41. {
  42. static BYTE parms[] =
  43. VTS_PVARIANT;
  44. InvokeHelper(0x69, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  45. Level);
  46. }
  47. void CWebBrowser::Stop()
  48. {
  49. InvokeHelper(0x6a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  50. }
  51. LPDISPATCH CWebBrowser::GetApplication()
  52. {
  53. LPDISPATCH result;
  54. InvokeHelper(0xc8, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  55. return result;
  56. }
  57. LPDISPATCH CWebBrowser::GetParent()
  58. {
  59. LPDISPATCH result;
  60. InvokeHelper(0xc9, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  61. return result;
  62. }
  63. LPDISPATCH CWebBrowser::GetContainer()
  64. {
  65. LPDISPATCH result;
  66. InvokeHelper(0xca, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  67. return result;
  68. }
  69. LPDISPATCH CWebBrowser::GetDocument()
  70. {
  71. LPDISPATCH result;
  72. InvokeHelper(0xcb, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  73. return result;
  74. }
  75. BOOL CWebBrowser::GetTopLevelContainer()
  76. {
  77. BOOL result;
  78. InvokeHelper(0xcc, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  79. return result;
  80. }
  81. CString CWebBrowser::GetType()
  82. {
  83. CString result;
  84. InvokeHelper(0xcd, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  85. return result;
  86. }
  87. long CWebBrowser::GetLeft()
  88. {
  89. long result;
  90. InvokeHelper(0xce, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  91. return result;
  92. }
  93. void CWebBrowser::SetLeft(long nNewValue)
  94. {
  95. static BYTE parms[] =
  96. VTS_I4;
  97. InvokeHelper(0xce, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  98. nNewValue);
  99. }
  100. long CWebBrowser::GetTop()
  101. {
  102. long result;
  103. InvokeHelper(0xcf, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  104. return result;
  105. }
  106. void CWebBrowser::SetTop(long nNewValue)
  107. {
  108. static BYTE parms[] =
  109. VTS_I4;
  110. InvokeHelper(0xcf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  111. nNewValue);
  112. }
  113. long CWebBrowser::GetWidth()
  114. {
  115. long result;
  116. InvokeHelper(0xd0, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  117. return result;
  118. }
  119. void CWebBrowser::SetWidth(long nNewValue)
  120. {
  121. static BYTE parms[] =
  122. VTS_I4;
  123. InvokeHelper(0xd0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  124. nNewValue);
  125. }
  126. long CWebBrowser::GetHeight()
  127. {
  128. long result;
  129. InvokeHelper(0xd1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  130. return result;
  131. }
  132. void CWebBrowser::SetHeight(long nNewValue)
  133. {
  134. static BYTE parms[] =
  135. VTS_I4;
  136. InvokeHelper(0xd1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  137. nNewValue);
  138. }
  139. CString CWebBrowser::GetLocationName()
  140. {
  141. CString result;
  142. InvokeHelper(0xd2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  143. return result;
  144. }
  145. CString CWebBrowser::GetLocationURL()
  146. {
  147. CString result;
  148. InvokeHelper(0xd3, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  149. return result;
  150. }
  151. BOOL CWebBrowser::GetBusy()
  152. {
  153. BOOL result;
  154. InvokeHelper(0xd4, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  155. return result;
  156. }
  157. void CWebBrowser::Quit()
  158. {
  159. InvokeHelper(0x12c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  160. }
  161. void CWebBrowser::ClientToWindow(long* pcx, long* pcy)
  162. {
  163. static BYTE parms[] =
  164. VTS_PI4 VTS_PI4;
  165. InvokeHelper(0x12d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  166. pcx, pcy);
  167. }
  168. void CWebBrowser::PutProperty(LPCTSTR szProperty, const VARIANT& vtValue)
  169. {
  170. static BYTE parms[] =
  171. VTS_BSTR VTS_VARIANT;
  172. InvokeHelper(0x12e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  173. szProperty, &vtValue);
  174. }
  175. VARIANT CWebBrowser::GetProperty_(LPCTSTR szProperty)
  176. {
  177. VARIANT result;
  178. static BYTE parms[] =
  179. VTS_BSTR;
  180. InvokeHelper(0x12f, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  181. szProperty);
  182. return result;
  183. }
  184. CString CWebBrowser::GetName()
  185. {
  186. CString result;
  187. InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  188. return result;
  189. }
  190. long CWebBrowser::GetHwnd()
  191. {
  192. long result;
  193. InvokeHelper(DISPID_HWND, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  194. return result;
  195. }
  196. CString CWebBrowser::GetFullName()
  197. {
  198. CString result;
  199. InvokeHelper(0x190, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  200. return result;
  201. }
  202. CString CWebBrowser::GetPath()
  203. {
  204. CString result;
  205. InvokeHelper(0x191, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  206. return result;
  207. }
  208. BOOL CWebBrowser::GetVisible()
  209. {
  210. BOOL result;
  211. InvokeHelper(0x192, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  212. return result;
  213. }
  214. void CWebBrowser::SetVisible(BOOL bNewValue)
  215. {
  216. static BYTE parms[] =
  217. VTS_BOOL;
  218. InvokeHelper(0x192, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  219. bNewValue);
  220. }
  221. BOOL CWebBrowser::GetStatusBar()
  222. {
  223. BOOL result;
  224. InvokeHelper(0x193, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  225. return result;
  226. }
  227. void CWebBrowser::SetStatusBar(BOOL bNewValue)
  228. {
  229. static BYTE parms[] =
  230. VTS_BOOL;
  231. InvokeHelper(0x193, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  232. bNewValue);
  233. }
  234. CString CWebBrowser::GetStatusText()
  235. {
  236. CString result;
  237. InvokeHelper(0x194, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  238. return result;
  239. }
  240. void CWebBrowser::SetStatusText(LPCTSTR lpszNewValue)
  241. {
  242. static BYTE parms[] =
  243. VTS_BSTR;
  244. InvokeHelper(0x194, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  245. lpszNewValue);
  246. }
  247. long CWebBrowser::GetToolBar()
  248. {
  249. long result;
  250. InvokeHelper(0x195, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  251. return result;
  252. }
  253. void CWebBrowser::SetToolBar(long nNewValue)
  254. {
  255. static BYTE parms[] =
  256. VTS_I4;
  257. InvokeHelper(0x195, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  258. nNewValue);
  259. }
  260. BOOL CWebBrowser::GetMenuBar()
  261. {
  262. BOOL result;
  263. InvokeHelper(0x196, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  264. return result;
  265. }
  266. void CWebBrowser::SetMenuBar(BOOL bNewValue)
  267. {
  268. static BYTE parms[] =
  269. VTS_BOOL;
  270. InvokeHelper(0x196, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  271. bNewValue);
  272. }
  273. BOOL CWebBrowser::GetFullScreen()
  274. {
  275. BOOL result;
  276. InvokeHelper(0x197, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  277. return result;
  278. }
  279. void CWebBrowser::SetFullScreen(BOOL bNewValue)
  280. {
  281. static BYTE parms[] =
  282. VTS_BOOL;
  283. InvokeHelper(0x197, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  284. bNewValue);
  285. }
  286. void CWebBrowser::Navigate2(VARIANT* URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers)
  287. {
  288. static BYTE parms[] =
  289. VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT;
  290. InvokeHelper(0x1f4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  291. URL, Flags, TargetFrameName, PostData, Headers);
  292. }
  293. long CWebBrowser::QueryStatusWB(long cmdID)
  294. {
  295. long result;
  296. static BYTE parms[] =
  297. VTS_I4;
  298. InvokeHelper(0x1f5, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  299. cmdID);
  300. return result;
  301. }
  302. void CWebBrowser::ExecWB(long cmdID, long cmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut)
  303. {
  304. static BYTE parms[] =
  305. VTS_I4 VTS_I4 VTS_PVARIANT VTS_PVARIANT;
  306. InvokeHelper(0x1f6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  307. cmdID, cmdexecopt, pvaIn, pvaOut);
  308. }
  309. void CWebBrowser::ShowBrowserBar(VARIANT* pvaClsid, VARIANT* pvarShow, VARIANT* pvarSize)
  310. {
  311. static BYTE parms[] =
  312. VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT;
  313. InvokeHelper(0x1f7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  314. pvaClsid, pvarShow, pvarSize);
  315. }
  316. long CWebBrowser::GetReadyState()
  317. {
  318. long result;
  319. InvokeHelper(DISPID_READYSTATE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  320. return result;
  321. }
  322. BOOL CWebBrowser::GetOffline()
  323. {
  324. BOOL result;
  325. InvokeHelper(0x226, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  326. return result;
  327. }
  328. void CWebBrowser::SetOffline(BOOL bNewValue)
  329. {
  330. static BYTE parms[] =
  331. VTS_BOOL;
  332. InvokeHelper(0x226, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  333. bNewValue);
  334. }
  335. BOOL CWebBrowser::GetSilent()
  336. {
  337. BOOL result;
  338. InvokeHelper(0x227, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  339. return result;
  340. }
  341. void CWebBrowser::SetSilent(BOOL bNewValue)
  342. {
  343. static BYTE parms[] =
  344. VTS_BOOL;
  345. InvokeHelper(0x227, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  346. bNewValue);
  347. }
  348. BOOL CWebBrowser::GetRegisterAsBrowser()
  349. {
  350. BOOL result;
  351. InvokeHelper(0x228, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  352. return result;
  353. }
  354. void CWebBrowser::SetRegisterAsBrowser(BOOL bNewValue)
  355. {
  356. static BYTE parms[] =
  357. VTS_BOOL;
  358. InvokeHelper(0x228, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  359. bNewValue);
  360. }
  361. BOOL CWebBrowser::GetRegisterAsDropTarget()
  362. {
  363. BOOL result;
  364. InvokeHelper(0x229, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  365. return result;
  366. }
  367. void CWebBrowser::SetRegisterAsDropTarget(BOOL bNewValue)
  368. {
  369. static BYTE parms[] =
  370. VTS_BOOL;
  371. InvokeHelper(0x229, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  372. bNewValue);
  373. }
  374. BOOL CWebBrowser::GetTheaterMode()
  375. {
  376. BOOL result;
  377. InvokeHelper(0x22a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  378. return result;
  379. }
  380. void CWebBrowser::SetTheaterMode(BOOL bNewValue)
  381. {
  382. static BYTE parms[] =
  383. VTS_BOOL;
  384. InvokeHelper(0x22a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  385. bNewValue);
  386. }