Computing.Net > Forums > Windows Server 2008 > SHDocVw.ShellWindows not working

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SHDocVw.ShellWindows not working

Reply to Message Icon

Name: chiraggpatel007
Date: June 17, 2009 at 22:33:57 Pacific
OS: Windows 2008
Subcategory: Configurations
Comment:

Hi..all

I found one problem Windows Server 2008.
please refer the following
code. it gives me the "ieplorer.exe" while i am
running this code in XP
or 2003, but while I am running this code in
Windows Server 2008 it is
not giving me the proper result. it gives me
"Explorer.EXE" insted
"ieplorer.exe".

before run this command you have to add
reference of shdocvw.dll in
your project. i am using the VB 6.0

1. Dim IE As SHDocVw.InternetExplorer
2. Dim MainIE as SHDocVw.InternetExplorer
3. Dim sws As SHDocVw.ShellWindows
4. Dim ie As SHDocVw.InternetExplorer
5.
6. Set sws = New
SHDocVw.ShellWindows
7. For Each ie In sws
8. Debug.Print ie.Name
9. If ie.Hwnd=TmpStoredHandle then
10. Set MainIE =IE
11. Exit For
12. End IF
13. Next


With the Help of above code my MainIE Object
will set to my
Previously stored handle( In TmpStoredHandle)
.
Does anybody know that how can i get the
existing IE(Opened
Internet Explorer) detail with the help of
SHDocVw.ShellWindows in
Windows Server 2008?

I have also try to get the same thing with the
help of EnumWindows
AddressOf GetTopWindows, ByVal 0&
with this API i can get all the opened windows
with Its handle, but i
dont know that how can i set my MainIE
object with help of this
handle.

Can anybody help me?
Thanks in Advance



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: SHDocVw.ShellWindows not working

Static IP not working on Server 2008 www.computing.net/answers/windows-2008/static-ip-not-working-on-server-2008/110.html

Server not recognizing password www.computing.net/answers/windows-2008/server-not-recognizing-password/82.html

Domain Problem www.computing.net/answers/windows-2008/domain-problem/15.html