activex_IEWebGamePlugin_idl.tpl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // IEWebGamePlugin.idl : IDL source for IEWebGamePlugin
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (IEWebGamePlugin.tlb) and marshalling code.
  5. #include "olectl.h"
  6. import "oaidl.idl";
  7. import "ocidl.idl";
  8. [
  9. object,
  10. uuid(__WEBGAME_UUID__),
  11. dual,
  12. nonextensible,
  13. helpstring("IIEWebGameCtrl Interface"),
  14. pointer_default(unique)
  15. ]
  16. interface IIEWebGameCtrl : IDispatch{
  17. [propget, bindable, requestedit, id(DISPID_HWND)]
  18. HRESULT HWND([out, retval]LONG_PTR* pHWND);
  19. [id(1), helpstring("method getVariable")] HRESULT getVariable([in] BSTR name, [out, retval] BSTR* value);
  20. [id(2), helpstring("method setVariable")] HRESULT setVariable([in] BSTR name, [in] BSTR value);
  21. [id(3), helpstring("method export")] HRESULT exportFunction([in] BSTR callback, [in] LONG numArguments);
  22. [id(4), helpstring("method callScript")] HRESULT callScript([in] BSTR code, [out, retval] BSTR* retValue);
  23. [id(5), helpstring("method startup")] HRESULT startup();
  24. };
  25. [
  26. uuid(__IWEBGAMECTRL_UUID__),
  27. version(1.0),
  28. helpstring("__WEBGAME_PLUGINNAME__ 1.0 Type Library")
  29. ]
  30. library __WEBGAME_PLUGINNAME__Lib
  31. {
  32. importlib("stdole2.tlb");
  33. [
  34. uuid(__WEBGAMELIB_UUID__),
  35. control,
  36. helpstring("IEWebGameCtrl Class")
  37. ]
  38. coclass IEWebGameCtrl
  39. {
  40. [default] interface IIEWebGameCtrl;
  41. };
  42. };