Improved Windows support
This commit is contained in:
10
examples/winapi/winapi.q
Normal file
10
examples/winapi/winapi.q
Normal file
@ -0,0 +1,10 @@
|
||||
import mem
|
||||
|
||||
main() {
|
||||
text := mem.alloc(4)
|
||||
text[0] = 'H'
|
||||
text[1] = 'i'
|
||||
text[2] = '!'
|
||||
user32.MessageBoxA(0, text, text, 0x00240040)
|
||||
mem.free(text, 4)
|
||||
}
|
Reference in New Issue
Block a user