Writing to windows console through foreign calls!
This commit is contained in:
7
main.kl
7
main.kl
@@ -1,6 +1,9 @@
|
||||
Base :: #load "base.kl"
|
||||
|
||||
CONSTANT :: 0xabCAFAAABCDAEAA
|
||||
Win :: #load "Windows.kl"
|
||||
|
||||
main :: (argc: int, argv: **char): int
|
||||
memory := Base.reserve(size = 10000)
|
||||
handle := Win.GetStdHandle(Win.STD_OUTPUT_HANDLE)
|
||||
|
||||
string: *char = "hello world"
|
||||
Win.WriteConsoleA(handle, string->*void, 11, 0, 0)
|
||||
|
||||
Reference in New Issue
Block a user