Hi Mahony,
Thank you for posting your question in the Microsoft Community Forums.
Based on the information, you are trying to write automated tests for several applications that use DirectX.
The issue you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums for further assistance:
Windows Desktop Development MSDN Forums
Let us know if you need further assistance with Windows related issues. We will be happy to help.