我制作了一个基于Microsoft Browser Activex控件的简单浏览器,是否有任何方法可以在自己的浏览器中切换保护模式?
不能。不幸的是,无法在保护模式下运行WebBrowser控件托管应用程序,因为该应用程序不受支持且已损坏(因为您的应用程序未托管必需的代理对象)。
I take your "yes" as "switch on". I haven't done this myself, but I'd start my research with enabling the following features for the process hosting WebBrowser
control:
FEATURE_BROWSER_EMULATION
FEATURE_ZONE_ELEVATION
FEATURE_WINDOW_RESTRICTIONS
FEATURE_LOCALMACHINE_LOCKDOWN
FEATURE_RESTRICT_ACTIVEXINSTALL
FEATURE_VALIDATE_NAVIGATE_URL
FEATURE_PROTOCOL_LOCKDOWN
FEATURE_SAFE_BINDTOOBJECT
Let us know if you get there.
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.