|
-
Aug 9th, 2007, 04:59 AM
#1
Thread Starter
New Member
vba code. Open iExplorer (Win Vista)
Hi,
I am working with Windows Vista & Outlook 2007, where I have an addIn in vba.
I would like to open within the addIn a "hidden" iExplorer window, but when the "protected mode" is activated, it is always visible. I have seen that if I started the Outlook with "as Admnistrator", the addIn opens a "hidden" iExplorer window. So:
a) Can I open an iExplorer "as Administrator" from my vba code?
b) Can I open an external (mine) app "as Admin" and there start iExplorer (I suppose it would be hidden)
Any other idea? Any sugggestion?
Thanks in advance
-
Aug 9th, 2007, 06:05 AM
#2
Re: vba code. Open iExplorer (Win Vista)
there has been threads in classic VB forum for doing run as by code, i remember posting in one sometime ago, do a search there
there was also a thread in classic VB this week regarding setting admin tokens for program to run in vista
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 13th, 2007, 04:06 AM
#3
Re: vba code. Open iExplorer (Win Vista)
You would have to include a manifest file with your addin (being written in what language and version?) to designate it to be "requireAdministrator" credientials and prompt for login if not. Thi swill elevate the process on a administrator security token but if IE in not already in the Protected Mode then it wont open that way. Its depenadant upon the UAC being on in order to have protected mode on in IE.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|