Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IHTMLDocument2::get_scripts を使用して HTML ファイル内のすべてのスクリプト本体を取得し、get_text() を使用してスクリプト ソースを取得するコードである BHO を作成しています。しかし、スクリプトが外部ファイルから埋め込まれている場合、コンテンツは空の文字列であることがわかりました。
によって作成された IHTMLScriptElement からソース コードを取得する方法はありますか?
IHTMLScriptElement::src を使用してスクリプトの URL を取得し、WinInet キャッシュを掘り下げます。キャッシュされていない場合は、再度ダウンロードしてください。