>I develop my application.
>The (Database )application is stored In NT.
>the program is running on the win 9X.
>
>I want to write a log to check . How many current user to login my system?!
>The same user can run the application twice on his own PC.
>
>1.) I can save the datetime/login user as the user login my application.
>2.) I also can save the leave time as the user press 'Exit' to logout the system.
>
>Now my problem is, somtimes the Win9X is 'hang' , so the user need to 'end task' the application. or the user may suddenly shutdown/re-boot the computer..while the application is running ..
>
>How can check this event ? Or .. How can check that if the connection is broken ??
>
>Thanks
>From Agnes
There is a KB article on my web site that discusses how to limit the number of users logged in. You can use the same concept.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer