#define global IID_IHTMLDocument2 "{332C4425-26CB-11D0-B483-00C04FD90119}"
#usecom global IHTMLDocument2 IID_IHTMLDocument2 "{25336920-03F9-11CF-8FD0-00AA00686F13}"
#comfunc global IHTMLDocument2_get_all 8 sptr
#comfunc global IHTMLDocument2_get_body 9 sptr
#comfunc global IHTMLDocument2_get_activeElement 10 sptr
#comfunc global IHTMLDocument2_get_images 11 sptr
#comfunc global IHTMLDocument2_get_applets 12 sptr
#comfunc global IHTMLDocument2_get_links 13 sptr
#comfunc global IHTMLDocument2_get_forms 14 sptr
#comfunc global IHTMLDocument2_get_anchors 15 sptr
#comfunc global IHTMLDocument2_put_title 16 wstr
#comfunc global IHTMLDocument2_get_title 17 var
#comfunc global IHTMLDocument2_get_scripts 18 sptr
#comfunc global IHTMLDocument2_put_designMode 19 wstr
#comfunc global IHTMLDocument2_get_designMode 20 var
#comfunc global IHTMLDocument2_get_selection 21 sptr
#comfunc global IHTMLDocument2_get_readyState 22 var
#comfunc global IHTMLDocument2_get_frames 23 sptr
#comfunc global IHTMLDocument2_get_embeds 24 sptr
#comfunc global IHTMLDocument2_get_plugins 25 sptr
#comfunc global IHTMLDocument2_put_alinkColor 26 int
#comfunc global IHTMLDocument2_get_alinkColor 27 var
#comfunc global IHTMLDocument2_put_bgColor 28 int
#comfunc global IHTMLDocument2_get_bgColor 29 var
#comfunc global IHTMLDocument2_put_fgColor 30 int
#comfunc global IHTMLDocument2_get_fgColor 31 var
#comfunc global IHTMLDocument2_put_linkColor 32 int
#comfunc global IHTMLDocument2_get_linkColor 33 var
#comfunc global IHTMLDocument2_put_vlinkColor 34 int
#comfunc global IHTMLDocument2_get_vlinkColor 35 var
#comfunc global IHTMLDocument2_get_referrer 36 var
#comfunc global IHTMLDocument2_get_location 37 sptr
#comfunc global IHTMLDocument2_get_lastModified 38 var
#comfunc global IHTMLDocument2_put_URL 39 wstr
#comfunc global IHTMLDocument2_get_URL 40 var
#comfunc global IHTMLDocument2_put_domain 41 wstr
#comfunc global IHTMLDocument2_get_domain 42 var
#comfunc global IHTMLDocument2_put_cookie 43 wstr
#comfunc global IHTMLDocument2_get_cookie 44 var
#comfunc global IHTMLDocument2_put_expando 45 int
#comfunc global IHTMLDocument2_get_expando 46 var
#comfunc global IHTMLDocument2_put_charset 47 wstr
#comfunc global IHTMLDocument2_get_charset 48 var
#comfunc global IHTMLDocument2_put_defaultCharset 49 wstr
#comfunc global IHTMLDocument2_get_defaultCharset 50 var
#comfunc global IHTMLDocument2_get_mimeType 51 var
#comfunc global IHTMLDocument2_get_fileSize 52 var
#comfunc global IHTMLDocument2_get_fileCreatedDate 53 var
#comfunc global IHTMLDocument2_get_fileModifiedDate 54 var
#comfunc global IHTMLDocument2_get_fileUpdatedDate 55 var
#comfunc global IHTMLDocument2_get_security 56 var
#comfunc global IHTMLDocument2_get_protocol 57 var
#comfunc global IHTMLDocument2_get_nameProp 58 var
#comfunc global IHTMLDocument2_write 59 var
#comfunc global IHTMLDocument2_writeln 60 var
#comfunc global IHTMLDocument2_open 61 wstr,int,int,int,sptr
#comfunc global IHTMLDocument2_close 62
#comfunc global IHTMLDocument2_clear 63
#comfunc global IHTMLDocument2_queryCommandSupported 64 wstr,var
#comfunc global IHTMLDocument2_queryCommandEnabled 65 wstr,var
#comfunc global IHTMLDocument2_queryCommandState 66 wstr,var
#comfunc global IHTMLDocument2_queryCommandIndeterm 67 wstr,var
#comfunc global IHTMLDocument2_queryCommandText 68 wstr,var
#comfunc global IHTMLDocument2_queryCommandValue 69 wstr,var
#comfunc global IHTMLDocument2_execCommand 70 wstr,int,int,var
#comfunc global IHTMLDocument2_execCommandShowHelp 71 wstr,var
#comfunc global IHTMLDocument2_createElement 72 wstr,sptr
#comfunc global IHTMLDocument2_put_onhelp 73 int
#comfunc global IHTMLDocument2_get_onhelp 74 var
#comfunc global IHTMLDocument2_put_onclick 75 int
#comfunc global IHTMLDocument2_get_onclick 76 var
#comfunc global IHTMLDocument2_put_ondblclick 77 int
#comfunc global IHTMLDocument2_get_ondblclick 78 var
#comfunc global IHTMLDocument2_put_onkeyup 79 int
#comfunc global IHTMLDocument2_get_onkeyup 80 var
#comfunc global IHTMLDocument2_put_onkeydown 81 int
#comfunc global IHTMLDocument2_get_onkeydown 82 var
#comfunc global IHTMLDocument2_put_onkeypress 83 int
#comfunc global IHTMLDocument2_get_onkeypress 84 var
#comfunc global IHTMLDocument2_put_onmouseup 85 int
#comfunc global IHTMLDocument2_get_onmouseup 86 var
#comfunc global IHTMLDocument2_put_onmousedown 87 int
#comfunc global IHTMLDocument2_get_onmousedown 88 var
#comfunc global IHTMLDocument2_put_onmousemove 89 int
#comfunc global IHTMLDocument2_get_onmousemove 90 var
#comfunc global IHTMLDocument2_put_onmouseout 91 int
#comfunc global IHTMLDocument2_get_onmouseout 92 var
#comfunc global IHTMLDocument2_put_onmouseover 93 int
#comfunc global IHTMLDocument2_get_onmouseover 94 var
#comfunc global IHTMLDocument2_put_onreadystatechange 95 int
#comfunc global IHTMLDocument2_get_onreadystatechange 96 var
#comfunc global IHTMLDocument2_put_onafterupdate 97 int
#comfunc global IHTMLDocument2_get_onafterupdate 98 var
#comfunc global IHTMLDocument2_put_onrowexit 99 int
#comfunc global IHTMLDocument2_get_onrowexit 100 var
#comfunc global IHTMLDocument2_put_onrowenter 101 int
#comfunc global IHTMLDocument2_get_onrowenter 102 var
#comfunc global IHTMLDocument2_put_ondragstart 103 int
#comfunc global IHTMLDocument2_get_ondragstart 104 var
#comfunc global IHTMLDocument2_put_onselectstart 105 int
#comfunc global IHTMLDocument2_get_onselectstart 106 var
#comfunc global IHTMLDocument2_elementFromPoint 107 int,int,sptr
#comfunc global IHTMLDocument2_get_parentWindow 108 sptr
#comfunc global IHTMLDocument2_get_styleSheets 109 sptr
#comfunc global IHTMLDocument2_put_onbeforeupdate 110 int
#comfunc global IHTMLDocument2_get_onbeforeupdate 111 var
#comfunc global IHTMLDocument2_put_onerrorupdate 112 int
#comfunc global IHTMLDocument2_get_onerrorupdate 113 var
#comfunc global IHTMLDocument2_toString 114 var
#comfunc global IHTMLDocument2_createStyleSheet 115 wstr,int,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_IHTMLDocument2 "{332C4425-26CB-11D0-B483-00C04FD90119}"
#usecom global IHTMLDocument2 IID_IHTMLDocument2 "{25336920-03F9-11CF-8FD0-00AA00686F13}"
#comfunc global IHTMLDocument2_get_all 8 sptr
#comfunc global IHTMLDocument2_get_body 9 sptr
#comfunc global IHTMLDocument2_get_activeElement 10 sptr
#comfunc global IHTMLDocument2_get_images 11 sptr
#comfunc global IHTMLDocument2_get_applets 12 sptr
#comfunc global IHTMLDocument2_get_links 13 sptr
#comfunc global IHTMLDocument2_get_forms 14 sptr
#comfunc global IHTMLDocument2_get_anchors 15 sptr
#comfunc global IHTMLDocument2_put_title 16 wstr
#comfunc global IHTMLDocument2_get_title 17 sptr
#comfunc global IHTMLDocument2_get_scripts 18 sptr
#comfunc global IHTMLDocument2_put_designMode 19 wstr
#comfunc global IHTMLDocument2_get_designMode 20 sptr
#comfunc global IHTMLDocument2_get_selection 21 sptr
#comfunc global IHTMLDocument2_get_readyState 22 sptr
#comfunc global IHTMLDocument2_get_frames 23 sptr
#comfunc global IHTMLDocument2_get_embeds 24 sptr
#comfunc global IHTMLDocument2_get_plugins 25 sptr
#comfunc global IHTMLDocument2_put_alinkColor 26 int
#comfunc global IHTMLDocument2_get_alinkColor 27 sptr
#comfunc global IHTMLDocument2_put_bgColor 28 int
#comfunc global IHTMLDocument2_get_bgColor 29 sptr
#comfunc global IHTMLDocument2_put_fgColor 30 int
#comfunc global IHTMLDocument2_get_fgColor 31 sptr
#comfunc global IHTMLDocument2_put_linkColor 32 int
#comfunc global IHTMLDocument2_get_linkColor 33 sptr
#comfunc global IHTMLDocument2_put_vlinkColor 34 int
#comfunc global IHTMLDocument2_get_vlinkColor 35 sptr
#comfunc global IHTMLDocument2_get_referrer 36 sptr
#comfunc global IHTMLDocument2_get_location 37 sptr
#comfunc global IHTMLDocument2_get_lastModified 38 sptr
#comfunc global IHTMLDocument2_put_URL 39 wstr
#comfunc global IHTMLDocument2_get_URL 40 sptr
#comfunc global IHTMLDocument2_put_domain 41 wstr
#comfunc global IHTMLDocument2_get_domain 42 sptr
#comfunc global IHTMLDocument2_put_cookie 43 wstr
#comfunc global IHTMLDocument2_get_cookie 44 sptr
#comfunc global IHTMLDocument2_put_expando 45 int
#comfunc global IHTMLDocument2_get_expando 46 sptr
#comfunc global IHTMLDocument2_put_charset 47 wstr
#comfunc global IHTMLDocument2_get_charset 48 sptr
#comfunc global IHTMLDocument2_put_defaultCharset 49 wstr
#comfunc global IHTMLDocument2_get_defaultCharset 50 sptr
#comfunc global IHTMLDocument2_get_mimeType 51 sptr
#comfunc global IHTMLDocument2_get_fileSize 52 sptr
#comfunc global IHTMLDocument2_get_fileCreatedDate 53 sptr
#comfunc global IHTMLDocument2_get_fileModifiedDate 54 sptr
#comfunc global IHTMLDocument2_get_fileUpdatedDate 55 sptr
#comfunc global IHTMLDocument2_get_security 56 sptr
#comfunc global IHTMLDocument2_get_protocol 57 sptr
#comfunc global IHTMLDocument2_get_nameProp 58 sptr
#comfunc global IHTMLDocument2_write 59 sptr
#comfunc global IHTMLDocument2_writeln 60 sptr
#comfunc global IHTMLDocument2_open 61 wstr,int,int,int,sptr
#comfunc global IHTMLDocument2_close 62
#comfunc global IHTMLDocument2_clear 63
#comfunc global IHTMLDocument2_queryCommandSupported 64 wstr,sptr
#comfunc global IHTMLDocument2_queryCommandEnabled 65 wstr,sptr
#comfunc global IHTMLDocument2_queryCommandState 66 wstr,sptr
#comfunc global IHTMLDocument2_queryCommandIndeterm 67 wstr,sptr
#comfunc global IHTMLDocument2_queryCommandText 68 wstr,sptr
#comfunc global IHTMLDocument2_queryCommandValue 69 wstr,sptr
#comfunc global IHTMLDocument2_execCommand 70 wstr,int,int,sptr
#comfunc global IHTMLDocument2_execCommandShowHelp 71 wstr,sptr
#comfunc global IHTMLDocument2_createElement 72 wstr,sptr
#comfunc global IHTMLDocument2_put_onhelp 73 int
#comfunc global IHTMLDocument2_get_onhelp 74 sptr
#comfunc global IHTMLDocument2_put_onclick 75 int
#comfunc global IHTMLDocument2_get_onclick 76 sptr
#comfunc global IHTMLDocument2_put_ondblclick 77 int
#comfunc global IHTMLDocument2_get_ondblclick 78 sptr
#comfunc global IHTMLDocument2_put_onkeyup 79 int
#comfunc global IHTMLDocument2_get_onkeyup 80 sptr
#comfunc global IHTMLDocument2_put_onkeydown 81 int
#comfunc global IHTMLDocument2_get_onkeydown 82 sptr
#comfunc global IHTMLDocument2_put_onkeypress 83 int
#comfunc global IHTMLDocument2_get_onkeypress 84 sptr
#comfunc global IHTMLDocument2_put_onmouseup 85 int
#comfunc global IHTMLDocument2_get_onmouseup 86 sptr
#comfunc global IHTMLDocument2_put_onmousedown 87 int
#comfunc global IHTMLDocument2_get_onmousedown 88 sptr
#comfunc global IHTMLDocument2_put_onmousemove 89 int
#comfunc global IHTMLDocument2_get_onmousemove 90 sptr
#comfunc global IHTMLDocument2_put_onmouseout 91 int
#comfunc global IHTMLDocument2_get_onmouseout 92 sptr
#comfunc global IHTMLDocument2_put_onmouseover 93 int
#comfunc global IHTMLDocument2_get_onmouseover 94 sptr
#comfunc global IHTMLDocument2_put_onreadystatechange 95 int
#comfunc global IHTMLDocument2_get_onreadystatechange 96 sptr
#comfunc global IHTMLDocument2_put_onafterupdate 97 int
#comfunc global IHTMLDocument2_get_onafterupdate 98 sptr
#comfunc global IHTMLDocument2_put_onrowexit 99 int
#comfunc global IHTMLDocument2_get_onrowexit 100 sptr
#comfunc global IHTMLDocument2_put_onrowenter 101 int
#comfunc global IHTMLDocument2_get_onrowenter 102 sptr
#comfunc global IHTMLDocument2_put_ondragstart 103 int
#comfunc global IHTMLDocument2_get_ondragstart 104 sptr
#comfunc global IHTMLDocument2_put_onselectstart 105 int
#comfunc global IHTMLDocument2_get_onselectstart 106 sptr
#comfunc global IHTMLDocument2_elementFromPoint 107 int,int,sptr
#comfunc global IHTMLDocument2_get_parentWindow 108 sptr
#comfunc global IHTMLDocument2_get_styleSheets 109 sptr
#comfunc global IHTMLDocument2_put_onbeforeupdate 110 int
#comfunc global IHTMLDocument2_get_onbeforeupdate 111 sptr
#comfunc global IHTMLDocument2_put_onerrorupdate 112 int
#comfunc global IHTMLDocument2_get_onerrorupdate 113 sptr
#comfunc global IHTMLDocument2_toString 114 sptr
#comfunc global IHTMLDocument2_createStyleSheet 115 wstr,int,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 不要)。