Simplify GetDeviceStatus return by using inline new() instead of assigning to a local variable and returning its address.