ClipboardWatcher: fix error in profile filter, fix native methods

This commit is contained in:
Jonathan Jenne
2020-07-29 14:25:52 +02:00
parent 8918746f48
commit a825fc6d5e
5 changed files with 7 additions and 10 deletions

View File

@@ -2,6 +2,9 @@
Imports System.Text
Public Class NativeMethods
Public Declare Function GetWindowTextLength Lib "user32.dll" Alias "GetWindowTextLengthA" (ByVal hwnd As Int32) As Integer
Public Declare Function GetWindowText Lib "user32.dll" Alias "GetWindowTextA" (ByVal hWnd As IntPtr, ByVal WinTitle As String, ByVal MaxLength As Integer) As Integer
<DllImport("user32.dll")>
Public Shared Function GetDC(ByVal hwnd As IntPtr) As IntPtr
End Function
@@ -24,12 +27,6 @@ Public Class NativeMethods
Public Shared Function GetForegroundWindow() As IntPtr
End Function
<DllImport("user32.dll")>
Public Shared Function GetWindowText(ByVal hWnd As IntPtr, ByVal WinTitle As String, ByVal MaxLength As Integer) As Integer
End Function
<DllImport("user32.dll")>
Public Shared Function GetWindowTextLength(ByVal hwnd As Int32) As Integer
End Function
<DllImport("user32.dll")>
Public Shared Function GetWindowThreadProcessId(ByVal hwnd As IntPtr, ByRef lpdwProcessID As Integer) As Integer
End Function
<DllImport("user32.dll")>