; ---- Start code for Ultrabasic
; ---- Gabriel Fernandez
; ---- You are not allowed to use this code without permission

%INCLUDE "ainclude\ubwin.inc"

; --------- File and disk functions -----------
EXTERN CreateFileA
IMPORT CreateFileA kernel32.dll
EXTERN CloseHandle
IMPORT CloseHandle kernel32.dll
EXTERN ReadFile
IMPORT ReadFile kernel32.dll
EXTERN WriteFile
IMPORT WriteFile kernel32.dll
EXTERN SetFilePointer
IMPORT SetFilePointer kernel32.dll

; --------- All of this to handle windows -----------
EXTERN TextOutA
IMPORT TextOutA gdi32.dll
EXTERN SetTextColor
IMPORT SetTextColor gdi32.dll
EXTERN SetBkColor
IMPORT SetBkColor gdi32.dll
EXTERN SelectObject
IMPORT SelectObject gdi32.dll
EXTERN CreateFontA
IMPORT CreateFontA gdi32.dll
EXTERN BeginPaint
IMPORT BeginPaint user32.dll
EXTERN InvalidateRect
IMPORT InvalidateRect user32.dll
EXTERN EndPaint
IMPORT EndPaint user32.dll
EXTERN ExitProcess
IMPORT ExitProcess kernel32.dll
EXTERN GlobalAlloc
IMPORT GlobalAlloc kernel32.dll
EXTERN GlobalReAlloc
IMPORT GlobalReAlloc kernel32.dll
EXTERN GlobalFree
IMPORT GlobalFree kernel32.dll
EXTERN GlobalLock
IMPORT GlobalLock kernel32.dll
EXTERN GlobalUnlock
IMPORT GlobalUnlock kernel32.dll
EXTERN MessageBoxA
IMPORT MessageBoxA user32.dll
EXTERN GetModuleHandleA
IMPORT GetModuleHandleA kernel32.dll
EXTERN RegisterClassExA
IMPORT RegisterClassExA user32.dll
EXTERN CreateWindowExA
IMPORT CreateWindowExA user32.dll
EXTERN GetMessageA
IMPORT GetMessageA user32.dll
EXTERN DispatchMessageA
IMPORT DispatchMessageA user32.dll
EXTERN DefWindowProcA
IMPORT DefWindowProcA user32.dll
EXTERN PostQuitMessage
IMPORT PostQuitMessage user32.dll
EXTERN ShowWindow
IMPORT ShowWindow user32.dll
EXTERN UpdateWindow
IMPORT UpdateWindow user32.dll

SECTION CODE USE32 CLASS=CODE

Align 4

..start: