Re: howto determine if IE is in protected mode?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Kevin Yu [MSFT] wrote:
Hi Ty,

In windows API, we can use IEIsProtectedModeProcess function to determine whether IE is running under protected mode. However, on page script, we can only try executing something that is not allowed in protected mode and catch the exception to determine it.

Kevin Yu
Microsoft Online Community Support
==================================================

(This posting is provided "AS IS", with no warranties, and confers no rights.)


Thanks for the suggestion. If capturing the exception from a prohibited operation is the best way to do this then does any have a suggestion about what the best 'prohibited' operation to use?

My goal is to make the test as reliable as possible i.e. as few false positives as possible.


Is it too late to ask Microsoft to add a mechanism that provides this functionality for scripts?


Thanks.
.



Relevant Pages

  • RE: howto determine if IE is in protected mode?
    ... we can use IEIsProtectedModeProcess function to determine ... whether IE is running under protected mode. ... However, on page script, we can ... only try executing something that is not allowed in protected mode and ...
    (microsoft.public.scripting.jscript)
  • Re: Weird usage of printf/scanf? Why do they work?
    ... programming assignments. ... Script started on Mon Sep 7 14:47:00 2009 ... darwin:~ kevin$ ls *.c ...
    (comp.lang.c)
  • Re: adding Account Scripts
    ... The script i posted was not working exactly how I originally wrote it ... ... Kevin Callanan ... "Luiz" wrote: ... '/ Make Sure You Change 'User Info and Set objDomain to = Your Domain ...
    (microsoft.public.scripting.vbscript)
  • Re: Easy GPO Question - Setting Registry Keys
    ... > Hello Kevin, ... In this GPO I defined a logon script which ... >>> isn't local administrator of his client. ... >>> users local Administrators of their machines ... ...
    (microsoft.public.windows.group_policy)
  • Re: TDBC drivers available as Win32 binaries
    ... Thanks, Kevin. ... The INSTALL.tcl script didn't work for me. ... I've packaged pre-built binaries of the packages: ... To install them, download the file 'tdbc1.0b6-win32-drivers.ZIP'. ...
    (comp.lang.tcl)