Please read my blog's comment policy here.
Note: The “brain dump” series is akin to what the support.microsoft.com team calls “Fast Publish” articles—namely, things that are published quickly, without the usual level of polish, triple-checking, etc. I expect that these posts will contain errors, but I also expect them to be mostly correct. I’m writing these up this way now because they’ve been in my “Important things to write about” queue for ~5 years. Alas, these topics are so broad and intricate that a proper treatment would take far more time than I have available at the moment.
There are a few notable changes in Win8/Internet Explorer 10’s behavior when it comes to ActiveX controls.
1. The non-Desktop mode of the browser (let’s call it IEPKaM for lack of a better name) only permits instantiation of controls that are considered to be a part of the web platform. The list of permitted objects is hardcoded into Internet Explorer and consists of:
IEPKaM blocks other forms of extensibility outright: toolbars, BHOs, Pluggable Protocols, MIME Filters, and Namespace handlers will not load in IEPKaM.
2. IEPKaM only permits use of Adobe Flash on sites that are listed in the IE Compatibility List or DebugDomain registry key.
3. When enabled, IE’s ActiveX Filter permits use the controls listed above, except Adobe Flash, which is still filtered. This enhancement makes ActiveX Filtering far more palatable, as it doesn’t block use of legacy objects like the ActiveX version of the XMLHTTPRequest control.
4. Windows RT devices like the Microsoft Surface cannot download or install ActiveX controls.
5. When the Enhanced Protected Mode feature is enabled, controls will not load unless they have been compiled for 64bit (when run on 64bit Windows). When running on Windows 8, there is the additional requirement that the controls are listed in the CATID_AppContainerCompatible component category, indicating that they have been tested to work properly within AppContainers.
For instance, the controls must not expect to perform a non-brokered read of the local disk or registry; instead, such operations must be conducted on the control’s behalf by a registered broker object running at Medium Integrity. In some cases (like writing to a file), the IE Protected Mode APIs will suffice, but IE10 does not include any new Read brokers, so if your control hopes to read an arbitrary file from disk, you’ll need to write your own broker.
6. IE10 enables Enhanced Memory Protections like ForceASLR, which opts all loaded modules into address space randomization, regardless of whether the /DynamicBase flag was set. You should continue to set this flag directly, but be aware that your control cannot take dependencies on fixed module load addresses even if you fail to do so.
LOL what is full form of IEPKaM? When is EPM-compatible Silverlight coming?
IE Previously Known as M[redacted].
I have no reason to believe that an AppContainer-compatible version of Silverlight will ever become available, but the existing 64bit version should work in IE10 on Windows 7's EPM (since it's 64bit only, without AppContainer)
> Windows RT’s ActiveX restrictions are additionally backed by the OS loader, which will refuse to run code that hasn’t been signed with a particular code-signing certificate.
Not an IE-related internals, but is this done through some code path even "classic" Windows editions have in them?
> IE10 enables Enhanced Memory Protections like ForceASLR, which opts all loaded modules into address space randomization, regardless of whether the /DynamicBase flag was set.
But only if relocations are present, right? IE. like the 0x100 value if you would use the registry key for controlling this function.
So, I use a webcam whose bundled software uses an activex control to function. How do I ensure that this activex control will function in WinRT? Going to the manufacturer to ask... is a non-starter.
I developed some activex components that I use in my software ... everything worked fine in Windows 7 but now in windows 8 It gives me errors when i invoke in my programs the activeX components ... any help ?
EricLaw: You haven't really provided any information here that would allow someone to help you. You'd probably be better off more completely describing the problem in a new post on StackOverflow.com.