Directx function getdeviceremovedreason. Directx function getdeviceremovedreason