Thanks again for the help. Unfortunately after a lot of experimentation I was not able to get the code to work. "dotNET" is still supported by TC but I could not find any way to hook into Microsoft's direct X. I tried the exact code that you gave and I tried several other “dotNET” functions but so far no luck.
I tried a few other things including having TC read data from a third party GPU tool. This also did not work.
I also tried having Test Complete read data from the ATI video memory monitoring tool but Test Complete could not actually read the data that the tool was displaying.
In the past, another tester at my company tried to do this but he was never able to get consistent results.
It would be nice if Test Complete had a built in feature that could do this. Unfortunately after a lot of discussion with developers I found that this is not a trivial problem.
I am still open to suggestions. For now though I am going to try a few other things, but it looks like monitoring GPU performance is going to have to wait.