How to know if Nsight is attached ?

Hi,
Is there any way to programmatically know if NSight is attached to an application. It seems we can’t rely on D3DPERF_GetStatus().

Thanks.

Hi DZ4,

I wouldn’t have any code to give you, but I can tell you how it can be done.

Assuming this is a standard Win32 API program, you will need to use PSAPI’s EnumProcessModules function to find all the attached modules. Then, you will need to go through each of those and use GetModuleFileName to get their names. Look for the “Injection” substring in the results. If it exists, then it is running via Nsight.

-Jeff