DirectX diagnostics/debugger included with Visual Studio.
Launch notepad.exe as a subprocess of dxcap.exe. Note that you should have write permissions in the current working directory for the command to succeed; alternatively, add '-file c:\path\to\writable\location.ext' as first argument.
Dxcap.exe -c C:\Windows\System32\notepad.exe