ID3D12Device::SetStablePowerState
function call is only available if developer mode is turned on in the system. If not, it triggers a device removal.
Is there anĀ API to detect if the developer mode is on, so far i found nothing on msdn allowing an application to query it.
It appears a simple registry key hold the information, here a simple function to query the developer mode status.