hikari
3ce17607c6
sys/windows: add AdjustWindowRect and GetWindowRect
2022-03-27 04:17:07 +03:00
hikari
76277f83c1
sys/windows: add GetSystemMetrics
2022-03-27 02:23:40 +02:00
hikari
f4125d2d88
sys/windows: add ClientToScreen
2022-03-27 01:42:46 +02:00
Jeroen van Rijn
86a1c34c3a
HWND_TOPMOST, HWND_NOTOPMOST constants
2022-03-26 19:33:53 +01:00
hikari
73b81184fa
sys/windows: add MessageBox procedures
2022-03-25 20:53:17 +02:00
hikari
f8d3f86d8b
sys/windows: fix build
2022-03-25 16:17:53 +02:00
hikari
2f9a410a45
sys/windows: add SetWindowPos()
2022-03-25 16:09:16 +02:00
hikari
5d7b92d391
sys/windows: add mouse states masks
2022-03-24 18:40:23 +02:00
hikari
1d8bc3e917
sys/windows: fix gdi32 raw pointer types
2022-03-24 17:32:11 +02:00
hikari
a3b1ac3133
sys/windows: add basic Gdi32.lib support
2022-03-24 17:27:05 +02:00
hikari
01181517dc
sys/windows: add GetKeyState functions
2022-03-24 16:04:27 +02:00
hikari
2ccfaa7d4e
sys/windows: add virtual keycodes
2022-03-23 23:39:26 +02:00
hikari
4bd5de34ea
sys/windows: add several of constants
2022-03-23 23:39:09 +02:00
hikari
b9efd09d17
sys/windows: fixed calling conventions, added several bindings
2022-03-23 17:37:38 +02:00
Holger Lindner
3d389ee028
sys/windows: Add icon resource constants
2022-03-23 15:02:01 +01:00
Holger Lindner
edce27812f
Nixify line endings
2022-03-22 16:41:07 +01:00
Holger Lindner
193822b45d
Merge remote-tracking branch 'ftphikari/master'
2022-03-22 16:36:50 +01:00
Holger Lindner
43640a8b59
Add SendMessageA/W to sys/windows/user32.odin
2022-03-22 16:23:38 +01:00
Holger Lindner
bae13b6387
Fix incorrect type for wndproc callback procedure
2022-03-21 20:06:50 +01:00
hikari
e48c0eee74
sys/windows: added rudimentary User32.lib bindings
2022-03-21 18:44:31 +02:00
Holger Lindner
47e9857eb7
Add user32.odin with most basic procedures to core:sys/windows
2022-03-21 17:20:43 +01:00
Tetralux
4f9df50dc1
Remove incorrect #packed from sys/windows.STARTUPINFO
2022-03-18 11:42:25 +00:00
gingerBill
002ac6a1b7
Add vendor:directx packages: dxgi, d3d11, and d3d12
...
TODO: enums marked with `bit_set` may need conversions
2022-02-16 21:26:34 +00:00
Carwyn Nelson
c67c0789eb
Add socket() function to windows ws32 bindings
...
It looks like this was missing from the winsock bindings. Odin contains
WSASocketW which I assume would also work for obtaining a socket, but
socket() is distinct and is what I was using, so I assume others will
want it too.
2021-11-10 15:55:50 +00:00
Carwyn Nelson
d8b1523161
Fix the windows binding for getaddrinfo
...
getaddrinfo should take a double pointer to ADDRINFOA instead of a single pointer. If you call the binding in its current state you will not get back a valid ADDRINFOA struct.
I have also changed the `node` and `service` params to be cstring to avoid having to do `transmute(u8) value`.
2021-11-10 15:15:40 +00:00
gingerBill
79ad6f4564
Remove assert
2021-10-25 01:02:38 +01:00
Jonas Welle
7c26b0abdb
add GetModuleHandleA
2021-10-16 10:43:33 -04:00
gingerBill
0d258e8b55
Make many package time procedures use "contextless" calling convention
2021-10-11 20:08:38 +01:00
Jeroen van Rijn
a9f4c90c79
sys: Add Windows Bluetooth APIs.
2021-09-13 14:31:52 +02:00
gingerBill
f57201bbd1
Remove unneeded semicolons from the core library
2021-08-31 22:32:53 +01:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
445ed9be2b
Use multi-pointers when appropriate
2021-08-22 12:54:04 +01:00
gingerBill
0d257c61cd
Disallow using on an enum declaration.
2021-08-05 17:46:42 +01:00
gingerBill
9cd5ea59dd
Big simplification and improvement of the entity collection system, reducing unneeded steps for packages
2021-07-27 20:45:50 +01:00
Jeroen van Rijn
5dfff51a40
Allow core:sys/windows to build on Windows only
2021-07-15 12:13:57 +02:00
gingerBill
6d1eb473cf
Correct \n ignore rules
2021-04-26 21:25:44 +01:00
gingerBill
05a181d719
Fix style issues; Use new attribute @(cold) where appropriate in the new sync package
2021-04-14 20:19:02 +01:00
Jeroen van Rijn
aca5c7c1c6
Placate -vet.
2021-04-13 02:18:47 +02:00
Jeroen van Rijn
a1d871360c
Add support to core:windows to add/delete users.
...
main :: proc() {
using fmt;
using windows;
username := "testuser";
password := "testpass";
ok := add_user("", username, password);
fmt.printf("add_user: %v\n", ok);
pi := windows.PROCESS_INFORMATION{};
ok2, path := windows.add_user_profile(username);
fmt.printf("add_user_profile: %v, %v\n", ok2, path);
ok3 := windows.delete_user_profile(username);
fmt.printf("delete_user_profile: %v\n", ok3);
ok4 := windows.delete_user("", username);
fmt.printf("delete_user: %v\n", ok4);
// Has optional bool to not wait on the process before returning.
b := run_as_user(username, password, "C:\\Repro\\repro.exe", "Hellope!", &pi);
fmt.printf("run_as_user: %v %v\n", b, pi);
}
2021-04-13 02:09:44 +02:00
gingerBill
359ae29d98
Minor fixes
2021-03-18 13:25:41 +00:00
gingerBill
b727b6438b
Minimize unneeded casts
2021-03-03 14:31:17 +00:00
gingerBill
aa93305015
Replace usage of inline proc with #force_inline proc in the core library
2021-02-23 16:14:47 +00:00
gingerBill
efdee0dafb
Remove bit_field type from Odin (keyword and dead runtime code still exists)
2021-02-19 11:31:14 +00:00
gingerBill
5cced38a6e
Add kernel32 memory api
2021-02-11 15:31:51 +00:00
gingerBill
de9b6e3f6e
Correct sys/win32 to match sys/windows
2021-02-04 13:50:48 +00:00
gingerBill
54fbdabc38
Add experimental -insert-semicolon functionality to tokenizer and parser
2020-11-01 15:10:06 +00:00
zhibog
05b58bdbb1
Fixed package name
2020-10-24 00:17:36 +02:00
zhibog
4c4112fbc7
Fixed getting windows version. The former function is no longer working on Windows 10. Also fixed the struct to use correct win32 names
2020-10-24 00:14:01 +02:00
gingerBill
fa33476438
Improve default temp allocator; Fix filepath.abs behaviour on Windows
2020-10-13 14:40:13 +01:00
gingerBill
9ae3879956
Add os.stat, os.lstat, os.fstat, filepath.walk
2020-09-28 12:28:02 +01:00