#define global IID_IHTMLWindow2 "{332C4427-26CB-11D0-B483-00C04FD90119}"
#usecom global IHTMLWindow2 IID_IHTMLWindow2 "{D48A6EC6-6A4A-11CF-94A7-444553540000}"
#comfunc global IHTMLWindow2_get_frames 9 sptr
#comfunc global IHTMLWindow2_put_defaultStatus 10 wstr
#comfunc global IHTMLWindow2_get_defaultStatus 11 var
#comfunc global IHTMLWindow2_put_status 12 wstr
#comfunc global IHTMLWindow2_get_status 13 var
#comfunc global IHTMLWindow2_setTimeout 14 wstr,int,var,var
#comfunc global IHTMLWindow2_clearTimeout 15 int
#comfunc global IHTMLWindow2_alert 16 wstr
#comfunc global IHTMLWindow2_confirm 17 wstr,var
#comfunc global IHTMLWindow2_prompt 18 wstr,wstr,var
#comfunc global IHTMLWindow2_get_Image 19 sptr
#comfunc global IHTMLWindow2_get_location 20 sptr
#comfunc global IHTMLWindow2_get_history 21 sptr
#comfunc global IHTMLWindow2_close 22
#comfunc global IHTMLWindow2_put_opener 23 int
#comfunc global IHTMLWindow2_get_opener 24 var
#comfunc global IHTMLWindow2_get_navigator 25 sptr
#comfunc global IHTMLWindow2_put_name 26 wstr
#comfunc global IHTMLWindow2_get_name 27 var
#comfunc global IHTMLWindow2_get_parent 28 sptr
#comfunc global IHTMLWindow2_open 29 wstr,wstr,wstr,int,sptr
#comfunc global IHTMLWindow2_get_self 30 sptr
#comfunc global IHTMLWindow2_get_top 31 sptr
#comfunc global IHTMLWindow2_get_window 32 sptr
#comfunc global IHTMLWindow2_navigate 33 wstr
#comfunc global IHTMLWindow2_put_onfocus 34 int
#comfunc global IHTMLWindow2_get_onfocus 35 var
#comfunc global IHTMLWindow2_put_onblur 36 int
#comfunc global IHTMLWindow2_get_onblur 37 var
#comfunc global IHTMLWindow2_put_onload 38 int
#comfunc global IHTMLWindow2_get_onload 39 var
#comfunc global IHTMLWindow2_put_onbeforeunload 40 int
#comfunc global IHTMLWindow2_get_onbeforeunload 41 var
#comfunc global IHTMLWindow2_put_onunload 42 int
#comfunc global IHTMLWindow2_get_onunload 43 var
#comfunc global IHTMLWindow2_put_onhelp 44 int
#comfunc global IHTMLWindow2_get_onhelp 45 var
#comfunc global IHTMLWindow2_put_onerror 46 int
#comfunc global IHTMLWindow2_get_onerror 47 var
#comfunc global IHTMLWindow2_put_onresize 48 int
#comfunc global IHTMLWindow2_get_onresize 49 var
#comfunc global IHTMLWindow2_put_onscroll 50 int
#comfunc global IHTMLWindow2_get_onscroll 51 var
#comfunc global IHTMLWindow2_get_document 52 sptr
#comfunc global IHTMLWindow2_get_event 53 sptr
#comfunc global IHTMLWindow2_get__newEnum 54 sptr
#comfunc global IHTMLWindow2_showModalDialog 55 wstr,var,var,var
#comfunc global IHTMLWindow2_showHelp 56 wstr,int,wstr
#comfunc global IHTMLWindow2_get_screen 57 sptr
#comfunc global IHTMLWindow2_get_Option 58 sptr
#comfunc global IHTMLWindow2_focus 59
#comfunc global IHTMLWindow2_get_closed 60 var
#comfunc global IHTMLWindow2_blur 61
#comfunc global IHTMLWindow2_scroll 62 int,int
#comfunc global IHTMLWindow2_get_clientInformation 63 sptr
#comfunc global IHTMLWindow2_setInterval 64 wstr,int,var,var
#comfunc global IHTMLWindow2_clearInterval 65 int
#comfunc global IHTMLWindow2_put_offscreenBuffering 66 int
#comfunc global IHTMLWindow2_get_offscreenBuffering 67 var
#comfunc global IHTMLWindow2_execScript 68 wstr,wstr,var
#comfunc global IHTMLWindow2_toString 69 var
#comfunc global IHTMLWindow2_scrollBy 70 int,int
#comfunc global IHTMLWindow2_scrollTo 71 int,int
#comfunc global IHTMLWindow2_moveTo 72 int,int
#comfunc global IHTMLWindow2_moveBy 73 int,int
#comfunc global IHTMLWindow2_resizeTo 74 int,int
#comfunc global IHTMLWindow2_resizeBy 75 int,int
#comfunc global IHTMLWindow2_get_external 76 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IHTMLWindow2 "{332C4427-26CB-11D0-B483-00C04FD90119}"
#usecom global IHTMLWindow2 IID_IHTMLWindow2 "{D48A6EC6-6A4A-11CF-94A7-444553540000}"
#comfunc global IHTMLWindow2_get_frames 9 sptr
#comfunc global IHTMLWindow2_put_defaultStatus 10 wstr
#comfunc global IHTMLWindow2_get_defaultStatus 11 sptr
#comfunc global IHTMLWindow2_put_status 12 wstr
#comfunc global IHTMLWindow2_get_status 13 sptr
#comfunc global IHTMLWindow2_setTimeout 14 wstr,int,sptr,sptr
#comfunc global IHTMLWindow2_clearTimeout 15 int
#comfunc global IHTMLWindow2_alert 16 wstr
#comfunc global IHTMLWindow2_confirm 17 wstr,sptr
#comfunc global IHTMLWindow2_prompt 18 wstr,wstr,sptr
#comfunc global IHTMLWindow2_get_Image 19 sptr
#comfunc global IHTMLWindow2_get_location 20 sptr
#comfunc global IHTMLWindow2_get_history 21 sptr
#comfunc global IHTMLWindow2_close 22
#comfunc global IHTMLWindow2_put_opener 23 int
#comfunc global IHTMLWindow2_get_opener 24 sptr
#comfunc global IHTMLWindow2_get_navigator 25 sptr
#comfunc global IHTMLWindow2_put_name 26 wstr
#comfunc global IHTMLWindow2_get_name 27 sptr
#comfunc global IHTMLWindow2_get_parent 28 sptr
#comfunc global IHTMLWindow2_open 29 wstr,wstr,wstr,int,sptr
#comfunc global IHTMLWindow2_get_self 30 sptr
#comfunc global IHTMLWindow2_get_top 31 sptr
#comfunc global IHTMLWindow2_get_window 32 sptr
#comfunc global IHTMLWindow2_navigate 33 wstr
#comfunc global IHTMLWindow2_put_onfocus 34 int
#comfunc global IHTMLWindow2_get_onfocus 35 sptr
#comfunc global IHTMLWindow2_put_onblur 36 int
#comfunc global IHTMLWindow2_get_onblur 37 sptr
#comfunc global IHTMLWindow2_put_onload 38 int
#comfunc global IHTMLWindow2_get_onload 39 sptr
#comfunc global IHTMLWindow2_put_onbeforeunload 40 int
#comfunc global IHTMLWindow2_get_onbeforeunload 41 sptr
#comfunc global IHTMLWindow2_put_onunload 42 int
#comfunc global IHTMLWindow2_get_onunload 43 sptr
#comfunc global IHTMLWindow2_put_onhelp 44 int
#comfunc global IHTMLWindow2_get_onhelp 45 sptr
#comfunc global IHTMLWindow2_put_onerror 46 int
#comfunc global IHTMLWindow2_get_onerror 47 sptr
#comfunc global IHTMLWindow2_put_onresize 48 int
#comfunc global IHTMLWindow2_get_onresize 49 sptr
#comfunc global IHTMLWindow2_put_onscroll 50 int
#comfunc global IHTMLWindow2_get_onscroll 51 sptr
#comfunc global IHTMLWindow2_get_document 52 sptr
#comfunc global IHTMLWindow2_get_event 53 sptr
#comfunc global IHTMLWindow2_get__newEnum 54 sptr
#comfunc global IHTMLWindow2_showModalDialog 55 wstr,sptr,sptr,sptr
#comfunc global IHTMLWindow2_showHelp 56 wstr,int,wstr
#comfunc global IHTMLWindow2_get_screen 57 sptr
#comfunc global IHTMLWindow2_get_Option 58 sptr
#comfunc global IHTMLWindow2_focus 59
#comfunc global IHTMLWindow2_get_closed 60 sptr
#comfunc global IHTMLWindow2_blur 61
#comfunc global IHTMLWindow2_scroll 62 int,int
#comfunc global IHTMLWindow2_get_clientInformation 63 sptr
#comfunc global IHTMLWindow2_setInterval 64 wstr,int,sptr,sptr
#comfunc global IHTMLWindow2_clearInterval 65 int
#comfunc global IHTMLWindow2_put_offscreenBuffering 66 int
#comfunc global IHTMLWindow2_get_offscreenBuffering 67 sptr
#comfunc global IHTMLWindow2_execScript 68 wstr,wstr,sptr
#comfunc global IHTMLWindow2_toString 69 sptr
#comfunc global IHTMLWindow2_scrollBy 70 int,int
#comfunc global IHTMLWindow2_scrollTo 71 int,int
#comfunc global IHTMLWindow2_moveTo 72 int,int
#comfunc global IHTMLWindow2_moveBy 73 int,int
#comfunc global IHTMLWindow2_resizeTo 74 int,int
#comfunc global IHTMLWindow2_resizeBy 75 int,int
#comfunc global IHTMLWindow2_get_external 76 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。