创建应用程序........ [英] creating application........
问题描述
嗨用户,
我是这个网站的新手,所以请在我的查询中帮助我。我在.net c#中创建一个基于Windows的应用程序,它可以监视所有用户的详细信息,如打开/关闭应用程序,用户登录/注销,系统启动/关闭和屏幕保护程序监控详细信息.plz帮助我尝试fing根目录从哪里我可以得到所有正在运行的应用程序的轨道。另外我不想在上面的应用程序中使用计时器控件,所以可能是上述查询的可能替代方案。快速查看所有你的响应... ........
hi users,
i m new to this site, so kindly plz help me in my query. i m creating a windows based application in .net c# which can monitor all the user details like opening/closing of application,user login/logout,system start/shutdown and screensaver monitoring details.plz help me out as i m trying to fing the root directory from where i can get the track of all running applications.also i dont wanna use the timer control in the above application so what can be the possible alternatives for the above mentioned query.looking forward for all ur responses in a quick time...........
推荐答案
参考图书馆
System.Diagnostics(或)WMI也更可取要做到这一点。
:)
Refer to the library
System.Diagnostics (or) WMI also preferable to do this.
:)
hi users,
im这个网站的新手,所以请在我的查询中帮助我。我在.net c#中创建一个基于Windows的应用程序,它可以监视所有用户的详细信息,如打开/关闭应用程序,用户登录/注销,系统启动/关闭和屏幕保护程序监控详细信息.plz帮助我尝试fing根目录从哪里我可以得到所有正在运行的应用程序的轨道。另外我不想在上面的应用程序中使用计时器控件,所以可能是上述查询的可能替代方案。快速查看所有你的响应... ........
hi users,
i m new to this site, so kindly plz help me in my query. i m creating a windows based application in .net c# which can monitor all the user details like opening/closing of application,user login/logout,system start/shutdown and screensaver monitoring details.plz help me out as i m trying to fing the root directory from where i can get the track of all running applications.also i dont wanna use the timer control in the above application so what can be the possible alternatives for the above mentioned query.looking forward for all ur responses in a quick time...........
在您的应用程序中使用此代码。我希望你的问题能够得到解决
使用System.Diagnostics;
foreach(Process.GetProcesses中的进程p(System.Environment.MachineNam e))<如果(p.MainWindowHandle!= IntPtr.Zero)
{
Console.WriteLine(p) ; // string s = p.ToString();
}
}
use this code in your application . i hope ur problem will be solved
Using System.Diagnostics;
foreach ( Process p in Process.GetProcesses(System.Environment.MachineNam e) )
{
if( p.MainWindowHandle != IntPtr.Zero)
{
Console.WriteLine( p ); // string s = p.ToString();
}
}
在您的应用程序中使用此代码。我希望你的问题能够得到解决
使用System.Diagnostics;
foreach(Process.GetProcesses中的进程p(System.Environment.MachineNam e))<如果(p.MainWindowHandle!= IntPtr.Zero)
{
Console.WriteLine(p) ; // string s = p.ToString();
}
}
use this code in your application . i hope ur problem will be solved
Using System.Diagnostics;
foreach ( Process p in Process.GetProcesses(System.Environment.MachineNam e) )
{
if( p.MainWindowHandle != IntPtr.Zero)
{
Console.WriteLine( p ); // string s = p.ToString();
}
}
hi users,
感谢您的帖子和兴趣,但上述解决方案并未解决目的。我必须跟踪打开和关闭应用程序的时间,即监视Windows应用程序,系统登录/注销和系统启动/关闭
hi users,
thanks for ur post and interest but the above solution is not solving the purpose. i have to track the time of opening and closing the application i.e monitoring of windows application,system login/logoff and system start/shutdown
这篇关于创建应用程序........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!