;Simplest Solar Window
;Compile and run with F5
format PE GUI
include 'solar.inc'

section '.code' code readable executable

start:
	call	API_Window_Create,0,132,105,240,112,FLAG_WND_ALPHA+FLAG_WND_MINI,WND_TYPE_TOP
	call	API_Window_Set_Caption,eax,_caption
	xor	eax,eax
	ret
API_Window_Create:
	jmp	[j_API_Window_Create]
API_Window_Set_Caption:
	jmp	[j_API_Window_Set_Caption]
_caption	db 'Solar fasm example',0

section '.idata' import data readable writeable

  library sol_os,'solar.dll'

  import sol_os,\
	 j_API_Window_Create,'API_Window_Create',\
	 j_API_Window_Set_Caption,'API_Window_Set_Caption'

section '.reloc' fixups data readable discardable