Advertisement

Latest winapi Activity

I am developing Airlib, and now I need to create a window using WinAPI wihtout any main() or WinMain or anything like that in C (not cpp). So far whatever I find is in C++ or uses WinMain. I think SDL uses OpenGL, but I'd like to do without.

479 views
Advertisement
sarahm
December 05, 2021 05:45 PM

The way I register for raw input is

RAWINPUTDEVICE Rid[2];

//    //rawinputdevice for mouse
	Rid[0].usUsagePage = 0x01;
    Rid[0].usUsage = 0x02;
    Rid[0].dwFlags = RIDEV_NOLEGACY;
    Rid[0].hwndTarget = 0;
//
//    //rawinputdevice for keyboard
    Rid[1].usUsagePage = 0x01;
    Rid[1].usUsage…
12,093 views

@21st Century Moose This is the problem… I can't check the HRESULT from the Present() because the program stops WHILE making the Present (I checked this by putting the execution on Pause to see where the principal Thread stopped, and that's how I knew that it was the Present() that made all crash.)…

8,844 views
Airbatz
March 05, 2021 10:37 AM

@endurion 

Thanks for pointing that out. It has since been fixed.  ?

9,704 views
How did MS enumerate the product name for DeviceManager's container?

There are quite a few strings available. Perhaps you want HidD_GetPhysicalDescriptor()?

13,196 views
Advertisement
Advertisement