-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add a Broadcast property to HWND
for clearer semantics
#1699
Comments
What projection are you using? That is usually done in those. |
I'm using CsWin32 |
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage I guess we should add a new const in the metadata |
It exists in the headers: win32metadata/generation/WinSDK/RecompiledIdlHeaders/um/WinUser.h Lines 4079 to 4082 in 581c639
|
The |
I've been working with the HWND structure and realized that it might be beneficial to have a Broadcast property directly in the HWND structure to represent the broadcast handle, rather than casting it manually each time using (HWND)0xFFFF.
Proposal:
Add a static property to HWND that represents the broadcast handle. This would make the code more readable and reduce the potential for errors.
public static HWND Broadcast => new HWND(0xFFFF);
The text was updated successfully, but these errors were encountered: