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
gingerBill
8086c14dcc
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-10-18 10:28:25 +01:00
gingerBill
80ce1b7d85
Allow for N = -1 in wstring_to_utf8
2022-10-18 10:28:17 +01:00
hikari
2c14f0a109
sys/windows: add ITaskbarList interfaces
2022-10-13 11:19:05 +03:00
hikari
c909e8e4b8
sys/windows: add SHFileOperationW
2022-10-12 04:35:41 +03:00
hikari
a1935bc1f4
sys/windows: replace A with W
2022-10-10 20:40:41 +03:00
hikari
fa6cfde4b0
sys/windows: add free disk space function binding
2022-10-10 07:26:32 +03:00
hikari
bb9b58b8c4
sys/windows: add some constants
2022-10-07 03:53:14 +03:00
ftphikari
2b4fce8684
Merge branch 'odin-lang:master' into master
2022-10-04 09:10:00 +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
hikari
ce09cb0bdb
sys/windows: add comctl32
2022-10-01 17:13:17 +03:00
hikari
a728047281
sys/windows: add a bunch of stuff
2022-10-01 17:12:23 +03:00
gingerBill
efa86ddf46
Merge pull request #2085 from matias-eduardo/patch-2
...
Add WSATRY_AGAIN to windows/types.odin
2022-09-27 23:08:24 +01:00
ftphikari
eb6c388f13
Merge branch 'odin-lang:master' into master
2022-09-27 11:06:05 +03:00
hikari
d1c778680b
sys/windows: add a couple of functions and constants, fix formatting
2022-09-27 11:05:01 +03:00
matias
162e86663f
Add WSATRY_AGAIN to windows/types.odin
...
Not sure if the intent is to only add the defines that are commonly used in this file in order to keep things lean, rather than the complete list of WSA error codes from winerror.h into winerror.odin. I can close this and redo by adding all the WSA codes into winerror.odin and deleting these instead if preferred.
2022-09-26 01:54: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
hikari
164ba944ac
sys/windows: add definitions
2022-09-14 11:42:19 +03:00
Ryan Chan
183a02c584
Add windows.timeGetTime()
...
Here is the windows documentation for it: https://docs.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timegettime
2022-09-10 16:54:34 +04:00
Jeroen van Rijn
6222e7be78
Merge branch 'master' into sysinfo
2022-09-05 18:28:18 +02:00
gingerBill
12687a63f4
Merge pull request #1951 from IanLilleyT/wstring_allocation
...
smaller allocation for non-null-terminated wstring
2022-09-05 15:48:43 +01:00
Jeroen van Rijn
01e8668357
Merge branch 'master' into sysinfo
2022-09-01 18:30:26 +02:00
gingerBill
4858e16a11
Merge pull request #1976 from matias-eduardo/patch-2
...
Add Extended Window Styles (WS_EX)
2022-09-01 16:26:51 +01:00
Lucas Perlind
f3f51bd643
Kernel32: Add more window bindings and improve consistency
2022-09-01 22:57:27 +10:00
Jeroen van Rijn
d5f94d73ad
[sys/info] Initial version.
2022-09-01 00:43:47 +02:00
Lucas Perlind
d9adb0fd6b
Add much of Win32's Raw Input API
2022-08-28 16:30:55 +10:00
matias
96e033b22c
Add Extended Window Styles (WS_EX)
...
Featuring frequently used styles such as: `WS_EX_APPWINDOW`, `WS_EX_NOREDIRECTIONBITMAP`, `WS_EX_ACCEPTFILES`, `WS_EX_TOOLWINDOW`, `WS_EX_TOPMOST`, `WS_EX_NOACTIVATE`, `WS_EX_LAYERED`, and more.
2022-08-25 21:12:45 -04:00
gingerBill
7fe36de069
Correct Try SRWLock related procedures to return BOOLEAN rather than BOOL
2022-08-22 22:24:51 +01:00
Ian Lilley
87094ef96c
smaller allocation for no
...
n-null-terminated wstring
2022-08-15 09:17:10 -04:00
matias
3dc62a67e0
Typo: "Get" -> "Set"
2022-08-14 07:16:54 -04:00
Fabian Sperber
e50648279d
Add some wgl extensions
...
- fix upper case for wglSwapIntervalEXT to be the same as the exported name
2022-08-12 21:56:55 +02:00
Fabian Sperber
929af320da
Add more windows bindings
2022-08-12 21:56:54 +02:00
Hyp-X
e6236e5c3e
Update user32.odin
...
Added UnregisterClassW procedure to windows\user32.odin
2022-08-01 15:59:00 +02:00
gingerBill
e1748a5dd1
Add MAKE_WORD
2022-07-21 17:08:11 +01:00
gingerBill
22a0c3fce1
Disallow proc() do stmt and only allow proc() { stmt }
2022-07-18 15:09:04 +01:00
gingerBill
c0d2359a91
Merge pull request #1826 from englerj/windows-bindings
...
Added additional Windows bindings.
2022-06-28 13:14:35 +01:00
Jimmy "Keeba" Lefevre
9e288b7ce8
Change LPCSTR to LPCWSTR in windows _W procedures
2022-06-27 21:48:02 +02:00
hikari
c6903fbcd5
sys/windows: add constants and macro
2022-06-17 15:14:21 +03:00
hikari
665db0f778
sys/windows: add RegSetKeyValueW
2022-06-16 22:54:59 +03:00
Josh Engler
50cbb8a1fc
Fix tab spacing.
2022-06-12 15:55:38 -04:00
Josh Engler
6f80174f84
Merge branch 'master' into windows-bindings
2022-06-11 09:48:28 -04:00
hikari
0ebe81fce2
sys/windows: add GetTextExtentPoint32W
2022-06-11 12:27:18 +03:00
hikari
3c6cc575c6
sys/windows: add a couple of constants
2022-06-10 21:17:27 +03:00
hikari
88e9eb7d0c
sys/windows: add functions and constants
2022-06-09 17:44:51 +03:00
hikari
d19fc54c3d
sys/windows: add macro
2022-06-08 21:18:11 +03:00
ftphikari
5d4291d9fa
Merge branch 'odin-lang:master' into master
2022-06-08 19:55:42 +03:00
hikari
b70cd03e9e
sys/windows: add interfaces from shobjidl_core.h
2022-06-08 19:38:12 +03:00
hikari
e91e5e1fe9
sys/windows: fix formatting
2022-06-07 20:16:32 +03:00