المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to identify the Process, that is created using Code ?



C# Programming
08-13-2009, 09:18 AM
Hi all !

i have opened the notepad using the the code as bellow:

System.Diagnostics.ProcessStartInfo obj = new System.Diagnostics.ProcessStartInfo();
obj.FileName = "C:\\Test.txt"
System.Diagnostics.Process objprocess = new System.Diagnostics.Process();
objprocess.StartInfo = obj;
objprocess.Start();

Is it possible to identify whether the notepad(process) is opened through the above code or manually by the user.

I am using WMI(Win32_ProcessStopTrace of Win32ProcessStartTrace)

Pls can some one help me.

thanks in advance

Regards
.....Jack