Hello Osvbnet
The OSVERSIONINFOA and OSVERSIONINFOEXA have not been updated yet:
https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoa
https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoexa
I would recommend you to search or start a New Discussion on the TechCommunity for WS 2022/ W11 version:
https://techcommunity.microsoft.com/t5/windows-server-insiders/bd-p/WindowsServerInsiders
Hope this resolves your query,
Best regards,