I\'m trying to get the name of the executable of a window that is outside my C# 2.0 application. My app currently gets a window handle (hWnd) using the GetForegroundWindow()
try this to get the file name of the executable :
C#:
string file = System.Windows.Forms.Application.ExecutablePath;
mfg