#If Win64 Then
Declare PtrSafe Function GetDC& Lib "user32.dll" ( _
ByVal hWnd&)
Declare PtrSafe Function ReleaseDC& Lib "user32.dll" ( _
ByVal hWnd&, ByVal hdc&)
Declare PtrSafe Function GetDeviceCaps& Lib "gdi32.dll" ( _
ByVal hdc&, ByVal nIndex&)
Declare PtrSafe Function LineTo& Lib "gdi32.dll" ( _
ByVal hdc&, ByVal x&, ByVal y&)
Declare PtrSafe Function MoveToEx& Lib "gdi32.dll" ( _
ByVal hdc&, ByVal x&, ByVal y&, lpPoint As POINTAPI)
'---
Declare PtrSafe Sub keybd_event Lib "user32.dll" ( _
ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags&, ByVal dwExtraInfo&)
Declare PtrSafe Function CloseClipboard& Lib "User32" ()
Declare PtrSafe Function OpenClipboard& Lib "User32" (ByVal hWnd&)
Declare PtrSafe Function EmptyClipboard& Lib "User32" ()
Declare PtrSafe Function SetActiveWindow& Lib "user32.dll" (ByVal hWnd&)
'---
Declare PtrSafe Function FindWindow& Lib "User32" Alias "FindWindowA" ( _
ByVal lpClassName$, ByVal lpWindowName$)
Declare PtrSafe Function SetWindowLong& Lib "user32.dll" Alias "SetWindowLongA" ( _
ByVal hWnd&, ByVal nIndex&, ByVal dwNewLong&)
Declare PtrSafe Function GetWindowLong& Lib "user32.dll" Alias "GetWindowLongA" ( _
ByVal hWnd&, ByVal nIndex&)
#Else
Declare Function GetDC& Lib "user32.dll" ( _
ByVal hWnd&)
Declare Function ReleaseDC& Lib "user32.dll" ( _
ByVal hWnd&, ByVal hdc&)
Declare Function GetDeviceCaps& Lib "gdi32.dll" ( _
ByVal hdc&, ByVal nIndex&)
Declare Function LineTo& Lib "gdi32.dll" ( _
ByVal hdc&, ByVal x&, ByVal y&)
Declare Function MoveToEx& Lib "gdi32.dll" ( _
ByVal hdc&, ByVal x&, ByVal y&, lpPoint As POINTAPI)
'---
Declare Sub keybd_event Lib "user32.dll" ( _
ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags&, ByVal dwExtraInfo&)
Declare Function CloseClipboard& Lib "User32" ()
Declare Function OpenClipboard& Lib "User32" (ByVal hWnd&)
Declare Function EmptyClipboard& Lib "User32" ()
Declare Function SetActiveWindow& Lib "user32.dll" (ByVal hWnd&)
'---
Declare Function FindWindow& Lib "User32" Alias "FindWindowA" ( _
ByVal lpClassName$, ByVal lpWindowName$)
Declare Function SetWindowLong& Lib "user32.dll" Alias "SetWindowLongA" ( _
ByVal hWnd&, ByVal nIndex&, ByVal dwNewLong&)
Declare Function GetWindowLong& Lib "user32.dll" Alias "GetWindowLongA" ( _
ByVal hWnd&, ByVal nIndex&)
#End If