Currently DescribePixelFormat expects type PFD_PIXEL_TYPE for the parameter iPixelFormat that contains 2 values, RGBA = 0 and COLORINDEX = 1. I am not sure where these values come from because the iPixelFormat should be any valid pixelformat not just 0 and 1.
I believe this might be fixed by just regenerating the code using the latest version of win32meta as they had this issue fixed, see: https://github.com/microsoft/win32metadata/issues/1383
Currently DescribePixelFormat expects type PFD_PIXEL_TYPE for the parameter iPixelFormat that contains 2 values, RGBA = 0 and COLORINDEX = 1. I am not sure where these values come from because the iPixelFormat should be any valid pixelformat not just 0 and 1. I believe this might be fixed by just regenerating the code using the latest version of win32meta as they had this issue fixed, see: https://github.com/microsoft/win32metadata/issues/1383