2 ms·
The Windows APIs like types more than POSIX, which likes to use integers for everything (though windows uses handles a lot) Also The Windows API pattern is typ
by novagameco 2y ago
The Windows APIs like types more than POSIX, which likes to use integers for everything (though windows uses handles a lot)
Also The Windows API pattern is typically:
1. Initialize a "descriptor" struct
2. Pass that descriptor struct by reference to a "create" function
3. Get ComPtr<> for resource
Where a ComPtr<> is a smart pointer that manages the lifecycle of an object across different processes
Also Windows built UTF-16 support into their APIs 30 years ago, so a lot of API calls involve constructing UTF-16 literals