简体   繁体   中英

using ActiveXObject in Winforms web browser Control

I'm using JavaScript code in c# web browser object (winform). from some reason I cannot use ActiveXObject... the line:

var fso = new ActiveXObject("Scripting.FileSystemObject");

doesn't work.

The object in question is not marked Safe-For-Scripting because it exposes unsafe functionality to potentially untrusted content.

In order for such objects to run, you will need to attach a delegate security manager and return URL_POLICY_ALLOW for URLAction 0x1201.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM