Private Declare PtrSafe Function CreateDC Lib "gdi32" Alias "CreateDCA" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, ByVal lpInitData As Long) As Long
Private Declare PtrSafe Function CreateIC Lib "gdi32" Alias "CreateICA" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, ByVal lpInitData As Long) As Long
Private Declare PtrSafe Function DeleteDC32 Lib "gdi32" Alias "DeleteDC" (ByVal hDC As Long) As Long
Private Declare PtrSafe Function GetDeviceCaps Lib "gdi32" (ByVal hDC As Long, ByVal nIndex As Long) As Long
Private Declare PtrSafe Function SetMapMode Lib "gdi32" (ByVal hDC As Long, ByVal nMapMode As Long) As Long
Private Declare PtrSafe Function GlobalAlloc32 Lib "kernel32" Alias "GlobalAlloc" (ByVal wflags As Long, ByVal dwBytes As Long) As Long
Private Declare PtrSafe Function GlobalFree32 Lib "kernel32" Alias "GlobalFree" (ByVal hMem As Long) As Long
Private Declare PtrSafe Function GlobalLock32 Lib "kernel32" Alias "GlobalLock" (ByVal hMem As Long) As Long
Private Declare PtrSafe Function GlobalUnlock32 Lib "kernel32" Alias "GlobalUnlock" (ByVal hMem As Long) As Long
Private Declare PtrSafe Sub hmemcpy32 Lib "kernel32" Alias "RtlMoveMemory" (lpDest As Any, lpSource As Any, ByVal dwBytes As Long)
Private Declare PtrSafe Function PrintDlg32 Lib "COMDLG32.DLL" Alias "PrintDlgA" (pPrintDLG As udtPrintDlg) As Long
Private Declare PtrSafe Function CommDlgExtendedError32 Lib "COMDLG32.DLL" Alias "CommDlgExtendedError" () As Long
Private Declare PtrSafe Function GlobalAlloc32 Lib "kernel32" Alias "GlobalAlloc" (ByVal wflags As Long, ByVal dwBytes As Long) As Long
Private Declare PtrSafe Function GlobalFree32 Lib "kernel32" Alias "GlobalFree" (ByVal hMem As Long) As Long
Private Declare PtrSafe Function GlobalLock32 Lib "kernel32" Alias "GlobalLock" (ByVal hMem As Long) As Long
Private Declare PtrSafe Function GlobalUnlock32 Lib "kernel32" Alias "GlobalUnlock" (ByVal hMem As Long) As Long
Private Declare PtrSafe Sub hmemcpy32 Lib "kernel32" Alias "RtlMoveMemory" (lpDest As Any, lpSource As Any, ByVal dwBytes As Long)
Private Declare PtrSafe Function DeleteDC32 Lib "gdi32" Alias "DeleteDC" (ByVal hDC As Long) As Long
Private Declare PtrSafe Function api_FindWindow32 Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As Any) As Long
Private Declare PtrSafe Function api_LockWindow32 Lib "user32" Alias "LockWindowUpdate" (ByVal hwndLock As Long) As Long
Private Declare PtrSafe Function api_DestroyWindow32 Lib "user32" Alias "DestroyWindow" (ByVal hwnd As Long) As Long
Private Declare PtrSafe Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wFlag As Long) As Long
Private Declare PtrSafe Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Private Declare PtrSafe Sub SetWindowPos Lib "user32" (ByVal hwnd&, ByVal hWndInsertAfter&, ByVal x&, ByVal y&, ByVal cx&, ByVal cy&, ByVal wflags&)
Private Declare PtrSafe Function IsWindowVisible Lib "user32" (ByVal hWndWindow&) As Long
Private Declare PtrSafe Function ShowWindow& Lib "user32" (ByVal hwnd&, ByVal ShowState%)
Private Declare PtrSafe Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwndParent As Long, ByVal hWndChid As Long, ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare PtrSafe Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare PtrSafe Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Declare PtrSafe Function GetDeskTop Lib "user32" Alias "GetDesktopWindow" () As Long
Private Declare PtrSafe Function GetTopWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare PtrSafe Function GetWindowText& Lib "user32" Alias "GetWindowTextA" (ByVal hwnd&, ByVal lpstrTitleBuff$, ByVal intCharstoCopy%)