Hi @Florian Leskovsek ,
Thanks for reaching out.
The HCTM (Host Controlled Thermal Management) command you’re trying to use is supported in Windows, but in practice, it depends on the StorNVMe driver that comes with your OS. On Windows 11, the driver has been updated to fully understand the HCTM command, which is why your DeviceIoControl call succeeds there.
On Windows 10 Pro 22H2, even though the documentation says HCTM is supported, the default driver may not implement that command yet. That’s why you’re seeing ERROR_INVALID_FUNCTION, the OS is essentially telling your NVMe drive, “I don’t know how to do that yet.”
A few things you can try:
- Check for Windows updates - there may be a driver update for StorNVMe that adds HCTM support.
- Check your NVMe driver version - if your manufacturer provides a newer driver for Windows 10, installing that may resolve the issue.
- If immediate support for HCTM is critical, Windows 11 has built-in support and works out of the box.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.