473,382 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

creating application........

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...........
Oct 29 '07 #1
10 1334
radcaesar
759 Expert 512MB
Refer to the library

System.Diagnostics (or) WMI also preferable to do this.

:)
Oct 29 '07 #2
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...........
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();
}
}
Oct 29 '07 #3
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,
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
Oct 30 '07 #4
i think importing some dll might solve my problem.suggest me on that
Oct 30 '07 #5
reply needed urgently.plz reply fast.thankyou for your support
Oct 30 '07 #6
Shashi Sadasivan
1,435 Expert 1GB
run a timer with the min accuracy you need, and keep kicking off the process code as suggested by pankajinfoedge
even the process viewer does the same thing. a dll will only be inplementing a timer based function (even if it existed...there are no shortcuts)
Oct 30 '07 #7
hi all,
i am creating an application which monitors screensaver start and stop activity,also lock/unlock of a computer.i need some assistance on dat.plz help me on dis
Nov 5 '07 #8
hi all,
i discussed my query to all of you couple of days back. i think none of you all looked into it. plz read my prob. and help me out as much as you can. looking for your replies as soon as possibl.......
mohit
Nov 7 '07 #9
r035198x
13,262 8TB
hi all,
i discussed my query to all of you couple of days back. i think none of you all looked into it. plz read my prob. and help me out as much as you can. looking for your replies as soon as possibl.......
mohit
Refer to post #2 in this thread.
Nov 7 '07 #10
balabaster
797 Expert 512MB
Refer to post #2 in this thread.
Well in order to monitor user logins to the system, it will have to be a windows service so that it can run in a shell context...probably with an automatic startup so that it starts prior to any users logging on...so you're going to need to take that into account. You'll then monitor the process list and when a process is instantiated a record of the time it was started and the user that started it up. WMI should work for this. It seems relatively straight forward. The screen saver starts an executable so you can catch this too...of course, I'm not sure how you can tell who stopped the screen-saver. Because even if it's passworded any administrator could stop it...of course that would cause the old user to be logged off. I'm still not sure how you would tell who'd logged that person off...
Nov 7 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: PK | last post by:
Hello, I am looking for help on the following. I'm trying to create a custom browser toolbar button that will do a few things. One that I'm trying to do at the moment is just simply return the...
0
by: Robert | last post by:
I get these errors when creating a asp .net web application project in VS 2003 on a remote web server: "Microsoft Development Environment The Web was created successfully, but an error occurred...
1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
6
by: Eran Kampf | last post by:
I am trying to dynamically create directories in my ASP.NET application (I am using Server.MapPath("/")+"test" as the folder) and I am getting a DirectoryNotFoundException saying "Could not find a...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
0
by: Peter D. Dunlap | last post by:
I have a number of web sites on my 2003 server, each of the independent sites (i.e., not subdirectories of the localhost site). The way I have always set these up in the past is: 1. Create a...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
5
by: Sam777 | last post by:
I was under the impression that creating the app_offline.htm file at the root of the webapp would cause all handles to be closed so that the app could be removed. Unfortunately, this isn't the...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.