This looks pretty trivial, but it would be nice to have a test for it.
I have added additional tests with a non-existent `DEVPROPKEY` value and `DEVPKEY_Interface_Enabled`.
I'd suggest to add a trivial test for SetupDiGetDeviceInterfacePropertyW() with nonexistent property checking error code and then fix 'err =' in a way it returns CR_NO_SUCH_VALUE (probably, depending on the test) and CR_FAILURE for all the other errors.
Addressed in the latest revision, thanks.