MODULE User32;
IMPORT SYSTEM, Kernel32;
CONST
WMCreate* = 01H; WMDestroy* = 02H; WMMove* = 03H; WMSize* = 05H; WMActivate* = 06H; WMSetFocus* = 07H;
WMKillFocus* = 08H; WMPaint* = 0FH; WMClose* = 010H; WMQuit* = 012H; WMSetCursor* = 020H;
WMMouseActivate* = 021H; WMGetMinMaxInfo* = 024H; WMWindowPosChanging* = 046H;
WMGetIcon* = 07FH; WMSetIcon* = 080H; WMNCHitTest* = 084H;
WMKeyFirst* = 0100H;
WMKeyDown* = 0100H; WMKeyUp* = 0101H; WMChar* = 0102H; WMDeadChar* = 0103H;
WMSysKeyDown* = 0104H; WMSysKeyUp* = 0105H; WMSysChar* = 0106H; WMSysDeadChar* = 107H;
WMKeyLast* = 0108H;
WMCommand* = 0111H;
WMMouseFirst* = 0200H; WMMouseMove* = 0200H; WMMouseLast* = 020DH;
WMLButtonDown* = 0201H; WMLButtonUp* = 0202H;
WMRButtonDown* = 0204H; WMRButtonUp* = 0205H;
WMMButtonDown* = 0207H; WMMButtonUp* = 0208H;
WMMouseWheel* = 020AH;
WMXButtonDown* = 020BH; WMXButtonUp* = 020CH;
WMDropFiles* = 0233H;
WMCut* = 0300H; WMCopy* = 0301H; WMPaste* = 0302;
WMClear* = 0303H; WMUndo* = 0304H;
WMUser* = 0400H;
CSVRedraw* = 0; CSHRedraw* = 1; CSOwnDC* = 5; CSSaveBits* = 11; CSGlobalClass* = 14;
WSMaximizeBox* = 16; WSMinimizeBox* = 17; WSThickFrame* = 18; WSSysMenu* = 19; WSBorder* = 23;
WSMaximize* = 24; WSVisible* = 28; WSMinimize* = 29; WSChild* = 30;
CWUseDefault* = LONGINT(080000000H);
SizeRestored* = 0; SizeMinimized* = 1; SizeMaximized* = 2; SizeMaxshow* = 3; SizeMaxhide* = 4;
WAInactive* = 0; WAActive* = 1; WAClickActive* = 2;
MAActivate* = 1; MANoActivate* = 3;
SMCXScreen* = 0; SMCYScreen* = 1; SMCYCaption* = 4;
SMCXDlgFrame* = 7; SMCYDlgFrame* = 8;
SMCXFixedFrame* = SMCXDlgFrame; SMCYFixedFrame* = SMCYDlgFrame;
SMCYMenu* = 15; SMCXFrame* = 32; SMCYFrame* = 33;
SMCMouseButtons* = 43;
HWNDDesktop* = 0; HWNDBroadcast* = 0FFFFH;
VKCancel* = 03H; VKBack* = 08H; VKTab * = 09H; VKClear* = 0CH; VKReturn* = 0DH;
VKShift* = 010H; VKControl* = 011H; VKMenu* = 012H;
VKPause* = 013H; VKCapital* = 014H; VKEscape* = 01BH;
VKPrior* = 021H; VKNext* = 022H; VKEnd* = 023H; VKHome* = 024H;
VKLeft* = 025H; VKUp* = 026H; VKRight* = 027H; VKDown* = 028H;
VKSelect* = 029H; VKPrint* = 02AH; VKExecute* = 02BH; VKSnapshot* = 02CH;
VKInsert* = 02DH; VKDelete* = 02EH; VKHelp* = 02FH;
VKLWin* = 05BH; VKRWin* = 05CH; VKApps* = 05DH;
VKF1* = 070H; VKF2* = 071H; VKF3* = 072H; VKF4* = 073H;
VKF5* = 074H; VKF6* = 075H; VKF7* = 076H; VKF8* = 077H;
VKF9* = 078H; VKF10* = 079H; VKF11* = 07AH; VKF12* = 07BH;
MKLButton* = 0; MKRButton* = 1; MKShift* = 2; MKControl* = 3; MKMButton* = 4;
IDCArrow* = 32512; IDCWait* = 32514;
HTClient* = 1;
SWHide* = 0; SWShow* = 5;
SWNormal* = 1; SWShowNormal* = 1;
SWMinimize* = 6; SWShowMinimized* = 2;
SWMaximize* = 3; SWShowMaximized* = 3;
SWRestore* = 9;
SWShowDefault* = 10;
SWPNoSize* = 0; SWPNoMove* = 1; SWPNoZOrder* = 2; SWPNoRedraw* = 3; SWPNoActivate* = 4;
SWPFrameChanged* = 5; SWPShowWindow* = 6; SWPHideWindow* = 7;
CFText* = 1; CFBitmap* = 2; CFMetafilePict* = 3; CFDIB* = 8; CFEnhMetafile* = 14; CFHDrop* = 15;
MFByCommand* = {}; MFByPosition* = 10;
MFPopup* = 4; MFSeparator* = 11;
MFEnabled* = {}; MFGrayed * = 0; MFDisabled* = 1;
MFUnchecked* = {}; MFChecked* = 3;
MFString* = {};
MIIMID* = 1; MIIMType* = 4;
IconSmall* = 0; IconBig* = 1;
GWLWndProc* = -4; GWLStyle* = - 16; GWLExStyle* = -20;
MBOk* = {}; MBOkCancel* = {0}; MBAbortRetryIgnore* = {1};
MBYesNoCancel* = {0, 1}; MBYesNo* = {2}; MBRetryCancel* = {0, 2};
MBIconHand* = {4}; MBIconQuestion* = {5}; MBIconExclamation* = {4, 5}; MBIconAsterisk* = {6};
MBIconWarning* = MBIconExclamation; MBIconError* = MBIconHand;
MBIconInformation* = MBIconAsterisk; MBIconStop* = MBIconHand;
TPMLeftButton* = {}; TPMRightButton* = 1;
TPMLeftAlign* = {}; TPMCenterAlign* = 2; TPMRightAlign* = 3;
TPMTopAlign* = {}; TPMVCenterAlign* = 4; TPMBottomAlign* = 5;
TPMHorizontal* = {}; TPMVertical* = 6;
TPMNoNotify* = 7; TPMReturnCmd* = 8;
WHKeyboard* = 2;
ColorWindow* = 5;
ColorWindowText* = 8;
ColorBtnFace* = 15;
ColorBtnShadow* = 16;
Color3DLight* = 22;
Color3DFace* = ColorBtnFace;
Color3DShadow* = ColorBtnShadow;
TYPE
HWND* = Kernel32.HANDLE;
HDC* = Kernel32.HANDLE;
HGDIObj* = Kernel32.HANDLE;
HFont* = HGDIObj;
HBrush* = HGDIObj;
HRgn* = HGDIObj;
HBitmap* = HGDIObj;
HIcon* = Kernel32.HANDLE;
HCursor* = Kernel32.HANDLE;
HMenu* = Kernel32.HANDLE;
HPalette* = Kernel32.HANDLE;
HAccel* = Kernel32.HANDLE;
HHook* = Kernel32.HANDLE;
ColorRef* = LONGINT;
Point* = RECORD
x*, y*: LONGINT
END;
PointL* = Point;
PointF* = RECORD
x*, y*: REAL
END;
Rect* = RECORD
left*, top*, right*, bottom*: LONGINT
END;
RectL* = Rect;
Size* = RECORD
cx*, cy*: LONGINT
END;
SizeL* = Size;
MinMaxInfo* = RECORD
ptReserved*, ptMaxSize*, ptMaxPosition*, ptMinTrackSize*, ptMaxTrackSize*: Point
END;
Msg* = RECORD hwnd*: HWND;
message*: LONGINT;
wParam*, lParam*: LONGINT;
time*: LONGINT;
point*: Point
END;
WParam* = LONGINT; LParam* = LONGINT;
LResult* = LONGINT;
WndProc* = PROCEDURE {WINAPI} (hwnd: HWND; uMsg: LONGINT; wParam: WParam; lParam: LParam): LResult;
WndClassEx* = RECORD
cbSize*: LONGINT;
style*: SET;
lpfnWndProc*: WndProc;
cbClsExtra*, cbWndExtra*: LONGINT;
hInstance*: Kernel32.HINSTANCE;
hIcon*: HIcon;
hCursor*: HCursor;
hbrBackground*: HBrush;
lpszMenuName*, lpszClassName*: Kernel32.LPSTR;
hIconSm*: HIcon
END;
WndEnumProc* = PROCEDURE {WINAPI} (hwnd: HWND; lParam: LParam): Kernel32.BOOL;
WindowPos* = RECORD hwnd*, hwndInsertAfter*: HWND;
x*, y*, cx*, cy*: LONGINT;
flags*: SET
END;
WindowPlacement* = RECORD
length*: LONGINT;
flags*: SET;
showCmd*: LONGINT;
ptMinPosition*, ptMaxPosition*: Point;
rcNormalPosition*: Rect
END;
MenuItemInfo* = RECORD cbSize*: LONGINT;
fMask*, fType*, fState*: SET;
wID*: LONGINT;
hSubMenu*: HMenu;
hbmpChecked*, hbmpUnchecked*: HBitmap;
dwItemData*: LONGINT;
dwTypeData*: Kernel32.LPSTR;
cch*: LONGINT
END;
Accel* = RECORD fVirt*: CHAR;
key*, cmd*: INTEGER
END;
HookProc* = PROCEDURE {WINAPI} (code: LONGINT; wParam: WParam; lParam: LParam): LResult;
PaintStruct* = RECORD
hdc*: HDC;
fErase*: Kernel32.BOOL;
rcPaint*: Rect;
fRestore, fIncUpdate: Kernel32.BOOL;
rgbReserved: ARRAY 32 OF CHAR
END;
VAR
BeginPaint-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpPaint: PaintStruct): HDC;
BringWindowToTop-: PROCEDURE {WINAPI} (hWnd: HWND): Kernel32.BOOL;
CallNextHookEx-: PROCEDURE {WINAPI} (hhk: HHook; nCode: LONGINT; wParam: WParam; lParam: LParam): LResult;
CloseClipboard-: PROCEDURE {WINAPI} (): Kernel32.BOOL;
CreateAcceleratorTable-: PROCEDURE {WINAPI} (lpaccl: Kernel32.ADDRESS; cEntries: LONGINT): HAccel;
CreateMenu-: PROCEDURE {WINAPI} (): HMenu;
CreateWindowEx-: PROCEDURE {WINAPI} (dwExStyle: LONGINT; VAR lpClassName, lpWindowName: ARRAY OF CHAR; dwStyle: SET; x, y, nWidth, nHeight: LONGINT; hWndParent: HWND; hMenu: HMenu; hInstance: Kernel32.HINSTANCE; lpParam: LONGINT): HWND;
DefWindowProc-: WndProc;
DestroyAcceleratorTable-: PROCEDURE {WINAPI} (hAccel: HAccel): Kernel32.BOOL;
DestroyCursor-: PROCEDURE {WINAPI} (hCursor: HCursor): Kernel32.BOOL;
DestroyIcon-: PROCEDURE {WINAPI} (hIcon: HIcon): Kernel32.BOOL;
DestroyMenu-: PROCEDURE {WINAPI} (hMenu: HMenu): Kernel32.BOOL;
DestroyWindow-: PROCEDURE {WINAPI} (hWnd: HWND): Kernel32.BOOL;
DispatchMessage-: PROCEDURE {WINAPI} (VAR lpMsg: Msg): LONGINT;
DrawMenuBar-: PROCEDURE {WINAPI} (hWnd: HWND): Kernel32.BOOL;
EmptyClipboard-: PROCEDURE {WINAPI} (): Kernel32.BOOL;
EnableWindow-: PROCEDURE {WINAPI} (hWnd: HWND; bEnable: Kernel32.BOOL): Kernel32.BOOL;
EndPaint-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpPaint: PaintStruct): Kernel32.BOOL;
EnumWindows-: PROCEDURE {WINAPI} (lpEnumProc: WndEnumProc; lParam: LParam): Kernel32.BOOL;
EqualRect-: PROCEDURE {WINAPI} (lprc1, lprc2: Rect): Kernel32.BOOL;
GetAsyncKeyState-: PROCEDURE {WINAPI} (vKey: LONGINT): INTEGER;
GetClientRect-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpRect: Rect): Kernel32.BOOL;
GetClipboardData-: PROCEDURE {WINAPI} (uFormat: LONGINT): Kernel32.HANDLE;
GetClipboardFormatName-: PROCEDURE {WINAPI} (format: LONGINT; VAR lpszFormatName: ARRAY OF CHAR; cchMaxCount: LONGINT): LONGINT;
GetCursorPos-: PROCEDURE {WINAPI} (VAR lpPoint: Point): Kernel32.BOOL;
GetDC-: PROCEDURE {WINAPI} (hWnd: HWND): HDC;
GetFocus-: PROCEDURE {WINAPI} (): HWND;
GetForegroundWindow-: PROCEDURE {WINAPI} (): HWND;
GetKeyState-: PROCEDURE {WINAPI} (vKey: LONGINT): INTEGER;
GetMenu-: PROCEDURE {WINAPI} (hWnd: HWND): HMenu;
GetMenuItemInfo-: PROCEDURE {WINAPI} (hMenu: HMenu; uItem: LONGINT; fyByPosition: Kernel32.BOOL; VAR lpmii: MenuItemInfo): Kernel32.BOOL;
GetMenuString-: PROCEDURE {WINAPI} (hMenu: HMenu; uIDItem: LONGINT; VAR lpString: ARRAY OF CHAR; nMaxCount: LONGINT; uFlag: SET): Kernel32.BOOL;
GetMessage-: PROCEDURE {WINAPI} (VAR lpMsg: Msg; hWnd: HWND; wMsgFilterMin, wMsgFilterMax: LONGINT): LONGINT;
GetParent-: PROCEDURE {WINAPI} (hWnd: HWND): HWND;
GetProp-: PROCEDURE {WINAPI} (hWnd: HWND; lpString: LONGINT): LONGINT;
GetSysColor-: PROCEDURE {WINAPI} (nIndex: LONGINT): ColorRef;
GetSystemMetrics-: PROCEDURE {WINAPI} (nIndex: LONGINT): LONGINT;
GetWindowLong-: PROCEDURE {WINAPI} (hWnd: HWND; nIndex: LONGINT): LONGINT;
GetWindowPlacement-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpwndpl: WindowPlacement): Kernel32.BOOL;
GetWindowRect-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpRect: Rect): Kernel32.BOOL;
GetWindowRgn-: PROCEDURE {WINAPI} (hWnd: HWND; VAR hRgn: HRgn): LONGINT;
GetWindowText-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpString: ARRAY OF CHAR; nMaxCount: LONGINT): LONGINT;
GetUpdateRect-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpRect: Rect; bErase: Kernel32.BOOL): Kernel32.BOOL;
GetUpdateRgn-: PROCEDURE {WINAPI} (hWnd: HWND; VAR hRgn: HRgn; bErase: Kernel32.BOOL): LONGINT;
InsertMenu-: PROCEDURE {WINAPI} (hMenu: HMenu; uPosition: LONGINT; uFlags: SET; uIDNewItem: LONGINT; VAR lpNewItem: ARRAY OF CHAR): Kernel32.BOOL;
IntersectRect-: PROCEDURE {WINAPI} (VAR lprcDst: Rect; lprcSrc1, lprcSrc2: Rect): Kernel32.BOOL;
InvalidateRect-: PROCEDURE {WINAPI} (hWnd: HWND; lpRect: Rect; bErase: Kernel32.BOOL): Kernel32.BOOL;
IsChild-: PROCEDURE {WINAPI} (hWndParent, hWnd: HWND): Kernel32.BOOL;
LoadCursor-: PROCEDURE {WINAPI} (hInstance: Kernel32.HINSTANCE; VAR lpCursorName: ARRAY OF CHAR): HCursor;
LoadCursorFromFile-: PROCEDURE {WINAPI} (VAR lpFileName: ARRAY OF CHAR): HCursor;
LoadIcon-: PROCEDURE {WINAPI} (hInstance: Kernel32.HINSTANCE; VAR lpIconName: ARRAY OF CHAR): HIcon;
MessageBeep-: PROCEDURE {WINAPI} (uType: LONGINT): Kernel32.BOOL;
MessageBox-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpText, lpCaption: ARRAY OF CHAR; uType: SET): LONGINT;
MoveWindow-: PROCEDURE {WINAPI} (hWnd: HWND; X, Y, nWidth, nHeight: LONGINT; bRepaint: Kernel32.BOOL): Kernel32.BOOL;
OffsetRect-: PROCEDURE {WINAPI} (VAR lprc: Rect; dx, dy: LONGINT): Kernel32.BOOL;
OpenClipboard-: PROCEDURE {WINAPI} (hWndNewOwner: HWND): Kernel32.BOOL;
PtInRect-: PROCEDURE {WINAPI} (lprc: Rect; ptx, pty: LONGINT): Kernel32.BOOL;
PostMessage-: PROCEDURE {WINAPI} (hWnd: HWND; Msg: LONGINT; wParam: WParam; lParam: LParam): Kernel32.BOOL;
PostQuitMessage-: PROCEDURE {WINAPI} (nExitCode: LONGINT);
RegisterClassEx-: PROCEDURE {WINAPI} (VAR lpwcx: WndClassEx): Kernel32.ATOM;
RegisterHotKey-: PROCEDURE{WINAPI} (hWnd: HWND; id: LONGINT; fsmodifiers,vk: LONGINT): Kernel32.BOOL;
RegisterClipboardFormat-: PROCEDURE {WINAPI} (VAR lpszFormat: ARRAY OF CHAR): INTEGER;
RegisterWindowMessage-: PROCEDURE {WINAPI} (VAR lpString: ARRAY OF CHAR): LONGINT;
ReleaseCapture-: PROCEDURE {WINAPI} (): Kernel32.BOOL;
ReleaseDC-: PROCEDURE {WINAPI} (hWnd: HWND; hDC: HDC): LONGINT;
RemoveProp-: PROCEDURE {WINAPI} (hWnd: HWND; lpString: LONGINT): LONGINT;
ScreenToClient-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpPoint: Point): Kernel32.BOOL;
SendMessage-: PROCEDURE {WINAPI} (hWnd: HWND; Msg: LONGINT; wParam: WParam; lParam: LParam): LResult;
SetCapture-: PROCEDURE {WINAPI} (hWnd: HWND): HWND;
SetClipboardData-: PROCEDURE {WINAPI} (uFormat: LONGINT; hMem: Kernel32.HANDLE): Kernel32.HANDLE;
SetCursor-: PROCEDURE {WINAPI} (hCursor: HCursor): HCursor;
SetCursorPos-: PROCEDURE {WINAPI} (X, Y: LONGINT): Kernel32.BOOL;
SetFocus-: PROCEDURE {WINAPI} (hWnd: HWND): HWND;
SetForegroundWindow-: PROCEDURE {WINAPI} (hWnd: HWND): Kernel32.BOOL;
SetMenu-: PROCEDURE {WINAPI} (hWnd: HWND; hMenu: HMenu): Kernel32.BOOL;
SetMenuItemInfo-: PROCEDURE {WINAPI} (hMenu: HMenu; uItem: LONGINT; fyByPosition: Kernel32.BOOL; VAR lpmii: MenuItemInfo): Kernel32.BOOL;
SetProp-: PROCEDURE {WINAPI} (hWnd: HWND; lpString, hData: LONGINT): Kernel32.BOOL;
SetWindowsHookEx-: PROCEDURE {WINAPI} (idHook: LONGINT; lpfn: HookProc; hMod: Kernel32.HINSTANCE; dwThreadId: LONGINT): HHook;
SetWindowLong-: PROCEDURE {WINAPI} (hWnd: HWND; nIndex, dwNewLong: LONGINT): LONGINT;
SetWindowPos-: PROCEDURE {WINAPI} (hWnd, hWndInsertAfter: HWND; X, Y, cx, cy: LONGINT; uFlags: SET): Kernel32.BOOL;
SetWindowRgn-: PROCEDURE {WINAPI} (hWnd: HWND; hRgn: HRgn; bRedraw: Kernel32.BOOL): LONGINT;
SetWindowText-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpString: ARRAY OF CHAR): Kernel32.BOOL;
ShowCursor-: PROCEDURE {WINAPI} (bShow: Kernel32.BOOL): LONGINT;
ShowWindow-: PROCEDURE {WINAPI} (hWnd: HWND; nCmdShow: LONGINT): Kernel32.BOOL;
ShowWindowAsync-: PROCEDURE {WINAPI} (hWnd: HWND; nCmdShow: LONGINT): Kernel32.BOOL;
TrackPopupMenu-: PROCEDURE {WINAPI} (hMenu: HMenu; uFlags: SET; x, y, nReserved: LONGINT; hWnd: HWND; VAR prcRect: Rect): Kernel32.BOOL;
TranslateAccelerator-: PROCEDURE {WINAPI} (hWnd: HWND; hAccTable: HAccel; VAR lpMsg: Msg): LONGINT;
TranslateMessage-: PROCEDURE {WINAPI} (VAR lpMsg: Msg): Kernel32.BOOL;
UnhookWindowsHookEx-: PROCEDURE {WINAPI} (hhk: HHook): Kernel32.BOOL;
UnregisterClass-: PROCEDURE {WINAPI} (VAR lpClassName: ARRAY OF CHAR; hInstance: Kernel32.HINSTANCE): Kernel32.BOOL;
UpdateWindow-: PROCEDURE {WINAPI} (hWnd: HWND): Kernel32.BOOL;
ValidateRect-: PROCEDURE {WINAPI} (hWnd: HWND; VAR lpRect: Rect): Kernel32.BOOL;
GetConsoleWindow-: PROCEDURE{WINAPI} (): LONGINT ;
PROCEDURE {WINAPI} EqualSize*(VAR a, b: Size): BOOLEAN;
BEGIN
RETURN (a.cx = b.cx) & (a.cy = b.cy)
END EqualSize;
PROCEDURE Init;
VAR mod: Kernel32.HMODULE; str: ARRAY 32 OF CHAR;
BEGIN
str := "KERNEL32.DLL";
mod := Kernel32.LoadLibrary(str);
Kernel32.GetProcAddress(mod, "GetConsoleWindow", SYSTEM.VAL(LONGINT, GetConsoleWindow));
str := "USER32.DLL";
mod := Kernel32.LoadLibrary(str);
Kernel32.GetProcAddress(mod, "BeginPaint", SYSTEM.VAL(LONGINT,BeginPaint ));
Kernel32.GetProcAddress(mod, "BringWindowToTop", SYSTEM.VAL(LONGINT,BringWindowToTop ));
Kernel32.GetProcAddress(mod, "CallNextHookEx", SYSTEM.VAL(LONGINT,CallNextHookEx ));
Kernel32.GetProcAddress(mod, "CloseClipboard", SYSTEM.VAL(LONGINT,CloseClipboard ));
Kernel32.GetProcAddress(mod, "CreateAcceleratorTableA", SYSTEM.VAL(LONGINT,CreateAcceleratorTable ));
Kernel32.GetProcAddress(mod, "CreateMenu", SYSTEM.VAL(LONGINT,CreateMenu ));
Kernel32.GetProcAddress(mod, "CreateWindowExA", SYSTEM.VAL(LONGINT,CreateWindowEx ));
Kernel32.GetProcAddress(mod, "DefWindowProcA", SYSTEM.VAL(LONGINT,DefWindowProc ));
Kernel32.GetProcAddress(mod, "DestroyAcceleratorTable", SYSTEM.VAL(LONGINT,DestroyAcceleratorTable ));
Kernel32.GetProcAddress(mod, "DestroyMenu", SYSTEM.VAL(LONGINT,DestroyMenu ));
Kernel32.GetProcAddress(mod, "DestroyWindow", SYSTEM.VAL(LONGINT,DestroyWindow ));
Kernel32.GetProcAddress(mod, "DispatchMessageA", SYSTEM.VAL(LONGINT,DispatchMessage ));
Kernel32.GetProcAddress(mod, "DrawMenuBar", SYSTEM.VAL(LONGINT,DrawMenuBar ));
Kernel32.GetProcAddress(mod, "EmptyClipboard", SYSTEM.VAL(LONGINT,EmptyClipboard ));
Kernel32.GetProcAddress(mod, "EnableWindow", SYSTEM.VAL(LONGINT,EnableWindow ));
Kernel32.GetProcAddress(mod, "EndPaint", SYSTEM.VAL(LONGINT,EndPaint ));
Kernel32.GetProcAddress(mod, "EnumWindows", SYSTEM.VAL(LONGINT,EnumWindows ));
Kernel32.GetProcAddress(mod, "EqualRect", SYSTEM.VAL(LONGINT,EqualRect ));
Kernel32.GetProcAddress(mod, "GetAsyncKeyState", SYSTEM.VAL(LONGINT,GetAsyncKeyState ));
Kernel32.GetProcAddress(mod, "GetClientRect", SYSTEM.VAL(LONGINT,GetClientRect ));
Kernel32.GetProcAddress(mod, "GetClipboardData", SYSTEM.VAL(LONGINT,GetClipboardData ));
Kernel32.GetProcAddress(mod, "GetClipboardFormatNameA", SYSTEM.VAL(LONGINT,GetClipboardFormatName));
Kernel32.GetProcAddress(mod, "GetCursorPos", SYSTEM.VAL(LONGINT,GetCursorPos ));
Kernel32.GetProcAddress(mod, "GetDC", SYSTEM.VAL(LONGINT,GetDC ));
Kernel32.GetProcAddress(mod, "GetFocus", SYSTEM.VAL(LONGINT,GetFocus ));
Kernel32.GetProcAddress(mod, "GetForegroundWindow", SYSTEM.VAL(LONGINT,GetForegroundWindow ));
Kernel32.GetProcAddress(mod, "GetKeyState", SYSTEM.VAL(LONGINT,GetKeyState ));
Kernel32.GetProcAddress(mod, "GetMenu", SYSTEM.VAL(LONGINT,GetMenu ));
Kernel32.GetProcAddress(mod, "GetMenuItemInfoA", SYSTEM.VAL(LONGINT,GetMenuItemInfo ));
Kernel32.GetProcAddress(mod, "GetMenuStringA", SYSTEM.VAL(LONGINT,GetMenuString ));
Kernel32.GetProcAddress(mod, "GetMessageA", SYSTEM.VAL(LONGINT,GetMessage ));
Kernel32.GetProcAddress(mod, "GetParent", SYSTEM.VAL(LONGINT,GetParent ));
Kernel32.GetProcAddress(mod, "GetPropA", SYSTEM.VAL(LONGINT,GetProp ));
Kernel32.GetProcAddress(mod, "GetSysColor", SYSTEM.VAL(LONGINT,GetSysColor ));
Kernel32.GetProcAddress(mod, "GetSystemMetrics", SYSTEM.VAL(LONGINT,GetSystemMetrics ));
Kernel32.GetProcAddress(mod, "GetWindowLongA", SYSTEM.VAL(LONGINT,GetWindowLong ));
Kernel32.GetProcAddress(mod, "GetWindowPlacement", SYSTEM.VAL(LONGINT,GetWindowPlacement ));
Kernel32.GetProcAddress(mod, "GetWindowRect", SYSTEM.VAL(LONGINT,GetWindowRect ));
Kernel32.GetProcAddress(mod, "GetWindowRgn", SYSTEM.VAL(LONGINT,GetWindowRgn ));
Kernel32.GetProcAddress(mod, "GetWindowTextA", SYSTEM.VAL(LONGINT,GetWindowText ));
Kernel32.GetProcAddress(mod, "GetUpdateRect", SYSTEM.VAL(LONGINT,GetUpdateRect ));
Kernel32.GetProcAddress(mod, "GetUpdateRgn", SYSTEM.VAL(LONGINT,GetUpdateRgn ));
Kernel32.GetProcAddress(mod, "InvalidateRect", SYSTEM.VAL(LONGINT,InvalidateRect ));
Kernel32.GetProcAddress(mod, "InsertMenuA", SYSTEM.VAL(LONGINT,InsertMenu ));
Kernel32.GetProcAddress(mod, "IntersectRect", SYSTEM.VAL(LONGINT,IntersectRect ));
Kernel32.GetProcAddress(mod, "IsChild", SYSTEM.VAL(LONGINT,IsChild ));
Kernel32.GetProcAddress(mod, "LoadCursorA", SYSTEM.VAL(LONGINT,LoadCursor ));
Kernel32.GetProcAddress(mod, "LoadCursorFromFileA", SYSTEM.VAL(LONGINT,LoadCursorFromFile ));
Kernel32.GetProcAddress(mod, "LoadIconA", SYSTEM.VAL(LONGINT,LoadIcon ));
Kernel32.GetProcAddress(mod, "MessageBeep", SYSTEM.VAL(LONGINT,MessageBeep ));
Kernel32.GetProcAddress(mod, "MessageBoxA", SYSTEM.VAL(LONGINT,MessageBox ));
Kernel32.GetProcAddress(mod, "MoveWindow", SYSTEM.VAL(LONGINT,MoveWindow ));
Kernel32.GetProcAddress(mod, "OffsetRect", SYSTEM.VAL(LONGINT,OffsetRect ));
Kernel32.GetProcAddress(mod, "OpenClipboard", SYSTEM.VAL(LONGINT,OpenClipboard ));
Kernel32.GetProcAddress(mod, "PtInRect", SYSTEM.VAL(LONGINT,PtInRect ));
Kernel32.GetProcAddress(mod, "PostMessageA", SYSTEM.VAL(LONGINT,PostMessage ));
Kernel32.GetProcAddress(mod, "PostQuitMessage", SYSTEM.VAL(LONGINT,PostQuitMessage ));
Kernel32.GetProcAddress(mod, "RegisterClassExA", SYSTEM.VAL(LONGINT,RegisterClassEx ));
Kernel32.GetProcAddress(mod, "RegisterClipboardFormatA", SYSTEM.VAL(LONGINT,RegisterClipboardFormat ));
Kernel32.GetProcAddress(mod, "RegisterHotKey", SYSTEM.VAL(LONGINT,RegisterHotKey ));
Kernel32.GetProcAddress(mod, "RegisterWindowMessageA", SYSTEM.VAL(LONGINT,RegisterWindowMessage ));
Kernel32.GetProcAddress(mod, "ReleaseCapture", SYSTEM.VAL(LONGINT,ReleaseCapture ));
Kernel32.GetProcAddress(mod, "ReleaseDC", SYSTEM.VAL(LONGINT,ReleaseDC ));
Kernel32.GetProcAddress(mod, "RemovePropA", SYSTEM.VAL(LONGINT,RemoveProp ));
Kernel32.GetProcAddress(mod, "ScreenToClient", SYSTEM.VAL(LONGINT,ScreenToClient ));
Kernel32.GetProcAddress(mod, "SendMessageA", SYSTEM.VAL(LONGINT,SendMessage ));
Kernel32.GetProcAddress(mod, "SetCapture", SYSTEM.VAL(LONGINT,SetCapture ));
Kernel32.GetProcAddress(mod, "SetClipboardData", SYSTEM.VAL(LONGINT,SetClipboardData ));
Kernel32.GetProcAddress(mod, "SetCursor", SYSTEM.VAL(LONGINT,SetCursor ));
Kernel32.GetProcAddress(mod, "SetCursorPos", SYSTEM.VAL(LONGINT,SetCursorPos ));
Kernel32.GetProcAddress(mod, "SetFocus", SYSTEM.VAL(LONGINT,SetFocus ));
Kernel32.GetProcAddress(mod, "SetForegroundWindow", SYSTEM.VAL(LONGINT,SetForegroundWindow ));
Kernel32.GetProcAddress(mod, "SetMenu", SYSTEM.VAL(LONGINT,SetMenu ));
Kernel32.GetProcAddress(mod, "SetMenuItemInfoA", SYSTEM.VAL(LONGINT,SetMenuItemInfo ));
Kernel32.GetProcAddress(mod, "SetPropA", SYSTEM.VAL(LONGINT,SetProp ));
Kernel32.GetProcAddress(mod, "SetWindowsHookExA", SYSTEM.VAL(LONGINT,SetWindowsHookEx ));
Kernel32.GetProcAddress(mod, "SetWindowLongA", SYSTEM.VAL(LONGINT,SetWindowLong ));
Kernel32.GetProcAddress(mod, "SetWindowPos", SYSTEM.VAL(LONGINT,SetWindowPos ));
Kernel32.GetProcAddress(mod, "SetWindowRgn", SYSTEM.VAL(LONGINT,SetWindowRgn ));
Kernel32.GetProcAddress(mod, "SetWindowTextA", SYSTEM.VAL(LONGINT,SetWindowText ));
Kernel32.GetProcAddress(mod, "ShowCursor", SYSTEM.VAL(LONGINT,ShowCursor ));
Kernel32.GetProcAddress(mod, "ShowWindow", SYSTEM.VAL(LONGINT,ShowWindow ));
Kernel32.GetProcAddress(mod, "ShowWindowAsync", SYSTEM.VAL(LONGINT,ShowWindowAsync ));
Kernel32.GetProcAddress(mod, "TrackPopupMenu", SYSTEM.VAL(LONGINT,TrackPopupMenu ));
Kernel32.GetProcAddress(mod, "TranslateAcceleratorA", SYSTEM.VAL(LONGINT,TranslateAccelerator ));
Kernel32.GetProcAddress(mod, "TranslateMessage", SYSTEM.VAL(LONGINT,TranslateMessage ));
Kernel32.GetProcAddress(mod, "UnhookWindowsHookEx", SYSTEM.VAL(LONGINT,UnhookWindowsHookEx ));
Kernel32.GetProcAddress(mod, "UnregisterClassA", SYSTEM.VAL(LONGINT,UnregisterClass ));
Kernel32.GetProcAddress(mod, "UpdateWindow", SYSTEM.VAL(LONGINT,UpdateWindow ));
Kernel32.GetProcAddress(mod, "ValidateRect", SYSTEM.VAL(LONGINT,ValidateRect ));
END Init;
BEGIN
Init;
END User32.