Laurent Dufresne
1617060f46
Fix type of two Win32 functions
2024-06-03 20:41:31 +02:00
Waldemar Schiefer
abcbb8b47a
Add more win32 console APIs
2024-05-09 16:41:09 +02:00
gingerBill
e71cf96bbc
Keep -vet happy
2024-04-28 11:35:51 +01:00
gingerBill
00b1a41540
Add stack frame procedures for core:sys/windows
2024-04-28 11:31:50 +01:00
gingerBill
510574aa7f
Merge pull request #3373 from laytan/add-some-windows-wsa-symbols
...
add some wsa based additions to `core:sys/windows`
2024-04-04 20:40:31 +01:00
Laytan Laats
1af84e082c
add some wsa based additions to core:sys/windows
2024-04-04 17:09:12 +02:00
gerigk
62cebe1bc9
Add windows.SetEvent
2024-04-04 16:00:01 +02:00
Thomas la Cour
9eb1596939
Flags for GlobalAlloc
...
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-globalalloc
2024-03-03 19:53:33 +01:00
Lucas Perlind
8777fa1c04
Add more window procedures
2024-02-09 14:04:16 +11:00
gingerBill
75c659fa41
Change stdcall -> system
2024-01-17 17:04:54 +00:00
Jeroen van Rijn
dab72d5615
Merge pull request #2952 from Pingar5/master
...
Add various missing windows procedures
2023-11-24 13:23:47 +01:00
Brennen Shaughnessy
6749639eb1
Add various missing windows procedures
2023-11-22 09:29:56 -05:00
jakubtomsu
21247721b4
Add WaitFor* Ex variants
2023-10-28 20:39:46 +02:00
hikari
1b06f809de
[core:sys/windows] Added SuspendThread
2023-09-08 00:02:27 +03:00
hikari
19fe508fb2
[core:sys/windows] Added couple of procedures
2023-09-07 23:58:19 +03:00
gingerBill
2cc22d118d
Require parentheses for #align(N)
2023-08-15 14:55:02 +01:00
gingerBill
89c50bbd82
Adhere to -vet-style
2023-08-08 16:01:22 +01:00
ryuukk
bc43a8d38d
Add CopyFileW
2023-07-10 06:02:38 +02:00
gingerBill
3108752a0c
Fix #2518
2023-05-18 11:55:37 +01:00
Jon Lipstate
0f1c5b3891
correct errors
2023-04-05 22:22:16 -07:00
Jeroen van Rijn
fb0b9de7a9
Merge pull request #2423 from jon-lipstate/wsapoll
...
Winsock updates, iocp calls
2023-04-05 09:08:07 +02:00
Jon Lipstate
2c9156e2c1
repaired autoformatter
2023-04-04 23:57:52 -07:00
Jon Lipstate
bf75fd9d34
Revert "remove keyedevent"
...
This reverts commit 219343f3c0 .
2023-04-04 22:02:37 -07:00
Jon Lipstate
9a8c69d1c0
remove duplicate
2023-04-04 22:01:44 -07:00
Jon Lipstate
6c943722f3
add non Ex variant
2023-04-04 22:00:22 -07:00
Jon Lipstate
219343f3c0
remove keyedevent
2023-04-04 11:47:26 -07:00
Jon Lipstate
6cba4d3483
iocp support
2023-04-04 00:42:38 -07:00
Elusive Porpoise
aa5a222c6d
Add creation, thread priority, and copy file flags.
2023-04-03 22:33:40 -07:00
Elusive Porpoise
2795f09fa8
Add GetStartupInfoW. Rename StartupInfo to StartupInfoW.
2023-04-03 22:27:47 -07:00
Christian Seibold
852c8b533c
Add SetConsoleCursorInfo and GetConsoleCursorInfo to sys/windows package
2023-03-18 15:43:31 -05:00
Elusive Porpoise
4210aa9ab9
add SetConsoleOuputCP
2023-03-15 17:15:25 -07:00
gingerBill
0674b1b6ee
Merge pull request #2314 from SentientCoffee/pr/win32_console_text_attributes
...
Add win32 SetConsoleTextAttribute for setting cmd prompt colors
2023-03-04 15:19:34 +00:00
Jeppe Skov
ffc592c7cf
Added missing Windows functions for console manipulation
...
This commit adds several missing types and functions to the Windows implementation to enable manipulation of console windows. The types added include 'SMALL_RECT', 'CONSOLE_SCREEN_BUFFER_INFO', and 'PCONSOLE_SCREEN_BUFFER_INFO'. The functions added include 'GetConsoleScreenBufferInfo', 'SetConsoleScreenBufferSize', and 'SetConsoleWindowInfo'. These functions were necessary to properly manage the console window.
2023-02-28 23:18:10 +01:00
Elusive Porpoise
8738695bd8
FindFirstChangeNotification series of calls
2023-02-27 18:43:43 -08:00
Daniel
34cb558279
Add win32 SetConsoleTextAttributes for setting cmd prompt colors
2023-01-25 14:17:20 -05:00
Colin Davidson
171d5b4012
more windows kerfuffle
2023-01-06 13:45:21 -08:00
Colin Davidson
b455ccd261
fix more things?
2023-01-05 01:37:50 -08:00
Colin Davidson
b22ddb1453
fix windows structs
2023-01-05 01:25:18 -08:00
Colin Davidson
cb7dd12222
name raw union
2023-01-05 01:18:44 -08:00
Colin Davidson
8f39c45e9b
use raw_union?
2023-01-05 01:11:46 -08:00
Colin Davidson
944396128b
add get core count
2023-01-05 01:06:55 -08:00
hikari
7ed28e8a84
sys/windows: add CreateWaitableTimerExW
2022-12-02 05:24:30 +02:00
gingerBill
7bcde35651
Heavily improve time handling on Windows for time.now() and os.File_Info
2022-10-26 16:05:49 +01:00
gingerBill
7743e34596
Fix typo
2022-10-26 15:01:35 +01:00
gingerBill
4003b76fd3
Add GetSystemTimePreciseAsFileTime
2022-10-26 15:00:25 +01:00
hikari
fa6cfde4b0
sys/windows: add free disk space function binding
2022-10-10 07:26:32 +03:00
matias
d13dc7eca7
Add a few Fiber functions to kernel32.odin
...
This is not the complete set, but a start.
2022-10-03 11:35:27 -04:00
Tetralux
37a2356485
[sys/windows] Add DCB structure, SetCommState, GetCommState
...
These are the procedures for configuring a serial port.
You simply open the port with CreateFile (os.open), followed by a call to GetCommState,
setting the DCB as desired, followed by a SetCommState call.
The DCB structure uses C bitfields, so a configuration struct is provided along with a helper procedure to make it easier
to initialize in Odin code.
This makes it possible to initialize a DCB structure with one call to the helper:
```
dcb: DCB
windows.init_dcb_with_config(&dcb, {
BaudRate = 115200,
ByteSize = 8,
Parity = .None,
StopBits = .One,
})
```
(The parity and the stopbits are actually optional in this example, as their zero-values are None and One, respectively.)
2022-09-22 15:14:14 +00:00
Jeroen van Rijn
01e8668357
Merge branch 'master' into sysinfo
2022-09-01 18:30:26 +02:00
Lucas Perlind
f3f51bd643
Kernel32: Add more window bindings and improve consistency
2022-09-01 22:57:27 +10:00