Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows additions #3040

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
69634fa
Update user32.odin
NicknEma Dec 20, 2023
94ac20c
Update user32.odin
NicknEma Dec 20, 2023
8e9c2c9
Update user32.odin
NicknEma Dec 20, 2023
623df34
Update user32.odin
NicknEma Dec 20, 2023
a7d1b31
Update types.odin
NicknEma Dec 20, 2023
0ee2f8e
Update user32.odin
NicknEma Dec 20, 2023
9bab2ad
Corrected some return values user32.odin
NicknEma Dec 20, 2023
01b4b1b
Added BLENDFUNCTION struct
NicknEma Dec 21, 2023
c94e488
Added a bunch of functions
NicknEma Dec 21, 2023
9f98b51
Update types.odin
NicknEma Dec 21, 2023
a3a2efb
Some type fixes and minor changes
NicknEma Dec 21, 2023
dc530da
Added some minwindef.h and WinUser.h macros
NicknEma Dec 21, 2023
1836534
Merge branch 'odin-lang:master' into windows_additions
NicknEma Dec 21, 2023
1adea49
Changed spaces into tabs
NicknEma Dec 29, 2023
9a6404c
Changed spaces into tabs in util.odin
NicknEma Dec 29, 2023
c4b90ef
Removed *A calls
NicknEma Jan 22, 2024
88fd319
Added HDWP
NicknEma Jan 22, 2024
127ec7c
Added 'D' procs except for DispatchMessage
NicknEma Jan 22, 2024
1cef7ec
Added OpenIcon proc
NicknEma Jan 22, 2024
8370a40
Added 'L' procs
NicknEma Jan 22, 2024
f705197
Added 'E' procs
NicknEma Jan 22, 2024
1762519
Added some function types
NicknEma Jan 22, 2024
b49370e
Added PhysicalToLogicalPoint proc
NicknEma Jan 22, 2024
078b121
Added 'R' procs
NicknEma Jan 22, 2024
b6a9288
Added CreateMDIWindowW proc
NicknEma Jan 22, 2024
84c7a44
Added 'C' procs and related types
NicknEma Jan 22, 2024
891091d
Added some 'G' procs and related types
NicknEma Jan 22, 2024
e205b62
Added 'G' procs and related types
NicknEma Jan 22, 2024
4ae8d53
Added GetNextWindow alias and removed unnecessary placeholder comments
NicknEma Jan 22, 2024
cc4cbdd
Added 'I' procs
NicknEma Jan 22, 2024
48a545c
Removed a semicolon
NicknEma Jan 22, 2024
4445518
Changed some regular pointers to multi-pointers
NicknEma Jan 22, 2024
8550821
Merge branch 'odin-lang:master' into windows_additions
NicknEma Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions core/sys/windows/types.odin
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ HKEY :: distinct HANDLE
HDESK :: distinct HANDLE
HFONT :: distinct HANDLE
HRGN :: distinct HANDLE
HDWP :: distinct HANDLE
BOOL :: distinct b32
BYTE :: distinct u8
BOOLEAN :: distinct b8
Expand Down Expand Up @@ -297,6 +298,14 @@ REASON_CONTEXT :: struct {
}
PREASON_CONTEXT :: ^REASON_CONTEXT

BLENDFUNCTION :: struct {
BlendOp: BYTE,
BlendFlags: BYTE,
SourceConstantAlpha: BYTE,
AlphaFormat: BYTE,
}
NicknEma marked this conversation as resolved.
Show resolved Hide resolved
PBLENDFUNCTION :: ^BLENDFUNCTION

// RRF - Registry Routine Flags (for RegGetValue)
RRF_RT_REG_NONE :: 0x00000001
RRF_RT_REG_SZ :: 0x00000002
Expand Down Expand Up @@ -700,6 +709,8 @@ WNDPROC :: #type proc "stdcall" (HWND, UINT, WPARAM, LPARAM) -> LRESULT

HOOKPROC :: #type proc "stdcall" (code: c_int, wParam: WPARAM, lParam: LPARAM) -> LRESULT

SENDASYNCPROC :: #type proc "stdcall" (HWND, UINT, ULONG_PTR, LRESULT)

CWPRETSTRUCT :: struct {
lResult: LRESULT,
lParam: LPARAM,
Expand Down
Loading