Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.01. 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

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |