Christopher Schene
asked on
Need interface definition for SHDocVw.InternetExplorer
I need the interface definition for SHDocVw.InternetExplorer (methods, properties, events)
For some reason intellisense is not showing it in my vs2005.
Alternatively if you could tell me how to get intellisense to show the interface that would be great
Thanks,
Chris
For some reason intellisense is not showing it in my vs2005.
Alternatively if you could tell me how to get intellisense to show the interface that would be great
Thanks,
Chris
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
setting the priority is something different than manipulating within the ie instance itself.
you may want do do something along the lines of http://stackoverflow.com/questions/13480344/obtain-session-id-and-process-id-for-winlogon-exe
you may want do do something along the lines of http://stackoverflow.com/questions/13480344/obtain-session-id-and-process-id-for-winlogon-exe
ASKER
This code below gets the window handle...now all I need to do is get the process id from the window handle. I know this is possible because I have done it before---I just forgot how. Is there a function called "getProcessIDFromWIndowHan dle() or something similar?
SA = CreateObject("Shell.Applic ation")
Dim windowCount As Integer = SA.windows().count()
For Each window In SA.windows()
Dim WindowURL = window.LocationURL
Dim hWnd As Integer
hWnd = window.HWND
If InStr(WindowURL, URLToCheck) > 0 Then
logleave("IsWebTopPageOpen :success")
Return window
End If
Next
SA = CreateObject("Shell.Applic
Dim windowCount As Integer = SA.windows().count()
For Each window In SA.windows()
Dim WindowURL = window.LocationURL
Dim hWnd As Integer
hWnd = window.HWND
If InStr(WindowURL, URLToCheck) > 0 Then
logleave("IsWebTopPageOpen
Return window
End If
Next
ASKER
This is what I was trying to do: Get the process information from the window handle and then use that to bump the priority of the IE process.
'Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, ByRef lpdwProcessId As Long) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" _
(ByVal hwnd As IntPtr, _
ByRef lpdwProcessId As Long) As Long
Public Function getProcessFromWindowHandle (ByVal hWnd As Long) As Process
Dim myProcess As Process = Nothing
logenter("getProcessIDFrom WindowHand le " & hWnd)
Try
Dim lngPid As Integer
Dim lngAccessHwnd As IntPtr = New IntPtr(hWnd)
GetWindowThreadProcessId(l ngAccessHw nd, lngPid)
' GetWindowThreadProcessId(l ngAccessHw nd, myProcessidPtr)
myProcess = Process.GetProcessById(lng Pid)
Catch ex As Exception
logmessage(ex.ToString())
myProcess = Nothing
Finally
logleave("getProcessIDFrom WindowHand le")
End Try
Return myProcess
End Function
'Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, ByRef lpdwProcessId As Long) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" _
(ByVal hwnd As IntPtr, _
ByRef lpdwProcessId As Long) As Long
Public Function getProcessFromWindowHandle
Dim myProcess As Process = Nothing
logenter("getProcessIDFrom
Try
Dim lngPid As Integer
Dim lngAccessHwnd As IntPtr = New IntPtr(hWnd)
GetWindowThreadProcessId(l
' GetWindowThreadProcessId(l
myProcess = Process.GetProcessById(lng
Catch ex As Exception
logmessage(ex.ToString())
myProcess = Nothing
Finally
logleave("getProcessIDFrom
End Try
Return myProcess
End Function
ASKER
I looked at those references. Perhaps I am missing it, but I don't see an interface definition any place. If there is one, please post the exact web reference.
What I am actually trying to do is get the process ID for the IE instance and change the priority----I thought I had seen someplace where the window handle was available and from that I can get the process id.
Thanks very much!