reduce obsolete logging statements
This commit is contained in:
parent
0023ca3ab7
commit
130c095056
@ -57,15 +57,11 @@ Public Class Window
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Function GetWindowInfo(ByVal hWnd As IntPtr) As WindowInfo
|
Public Function GetWindowInfo(ByVal hWnd As IntPtr) As WindowInfo
|
||||||
Try
|
Try
|
||||||
_Logger.Debug("Getting Window Info")
|
|
||||||
|
|
||||||
Dim oPID As Integer = 0
|
Dim oPID As Integer = 0
|
||||||
Dim oTitleLength As Int32 = NativeMethods.GetWindowTextLength(hWnd)
|
Dim oTitleLength As Int32 = NativeMethods.GetWindowTextLength(hWnd)
|
||||||
Dim oWindowTitle As String = StrDup(oTitleLength + 1, "*")
|
Dim oWindowTitle As String = StrDup(oTitleLength + 1, "*")
|
||||||
Dim oClassBuilder As New StringBuilder(64)
|
Dim oClassBuilder As New StringBuilder(64)
|
||||||
|
|
||||||
_Logger.Debug("Getting Window Text and PID")
|
|
||||||
|
|
||||||
NativeMethods.GetWindowText(hWnd, oWindowTitle, oTitleLength + 1)
|
NativeMethods.GetWindowText(hWnd, oWindowTitle, oTitleLength + 1)
|
||||||
NativeMethods.GetWindowThreadProcessId(hWnd, oPID)
|
NativeMethods.GetWindowThreadProcessId(hWnd, oPID)
|
||||||
|
|
||||||
@ -79,8 +75,6 @@ Public Class Window
|
|||||||
Return Nothing
|
Return Nothing
|
||||||
End If
|
End If
|
||||||
|
|
||||||
_Logger.Debug("Getting Class Name")
|
|
||||||
|
|
||||||
NativeMethods.GetClassName(hWnd, oClassBuilder, 64)
|
NativeMethods.GetClassName(hWnd, oClassBuilder, 64)
|
||||||
|
|
||||||
Return New WindowInfo With {
|
Return New WindowInfo With {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user