reduce obsolete logging statements

This commit is contained in:
Jonathan Jenne 2019-10-24 16:35:41 +02:00
parent 0023ca3ab7
commit 130c095056

View File

@ -57,15 +57,11 @@ Public Class Window
''' </summary>
Public Function GetWindowInfo(ByVal hWnd As IntPtr) As WindowInfo
Try
_Logger.Debug("Getting Window Info")
Dim oPID As Integer = 0
Dim oTitleLength As Int32 = NativeMethods.GetWindowTextLength(hWnd)
Dim oWindowTitle As String = StrDup(oTitleLength + 1, "*")
Dim oClassBuilder As New StringBuilder(64)
_Logger.Debug("Getting Window Text and PID")
NativeMethods.GetWindowText(hWnd, oWindowTitle, oTitleLength + 1)
NativeMethods.GetWindowThreadProcessId(hWnd, oPID)
@ -79,8 +75,6 @@ Public Class Window
Return Nothing
End If
_Logger.Debug("Getting Class Name")
NativeMethods.GetClassName(hWnd, oClassBuilder, 64)
Return New WindowInfo With {