After upgrading windows 11 to version 24H2 this trick stopped to work for me.. Function DeviceIoControl() returns false, GetLastWin32Error() return 87 (0x57) - parameter is incorrect. I tried various changes in the structure, but without good results. Does anyone know what the structure should look like now?