Last active
November 7, 2025 08:50
-
-
Save Postrediori/2653bfb030a47302a6afb7b532ae3668 to your computer and use it in GitHub Desktop.
Windows.h replacement for headers by Sebastian Aaltonen (https://twitter.com/SebAaltonen/status/1530152876655386624)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef __F_WINHANDLES_HPP__ | |
| #define __F_WINHANDLES_HPP__ | |
| typedef void* HANDLE; | |
| typedef unsigned long long WPARAM; | |
| typedef long long LPARAM; | |
| typedef long long LRESULT; | |
| #define FORWARD_DECLARE_HANDLE(name) struct name##__; typedef struct name##__ *name; | |
| FORWARD_DECLARE_HANDLE(HINSTANCE); | |
| FORWARD_DECLARE_HANDLE(HWND); | |
| FORWARD_DECLARE_HANDLE(HDC); | |
| FORWARD_DECLARE_HANDLE(HGLRC); | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment