473,383 Members | 1,861 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,383 software developers and data experts.

Capturing login event in Service Application

I am writing a Windows Service Application and want to be able to capture when the user is logging into Windows. Is there any way within .NET to do this? Basically, I need the equivalent to the SystemEvents.SessionEnded event.

--
Dan S
Jul 21 '05 #1
2 2451
Elp

"Dan S" <Da**@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
I am writing a Windows Service Application and want to be able to capture

when the user is logging into Windows. Is there any way within .NET to do
this? Basically, I need the equivalent to the SystemEvents.SessionEnded
event.

A quick and dirty way to do that would be to detect when the process
explorer.exe starts. This is straitforward to do and allow you to detect
when a user logs in. However, if you are using a system that allow several
users to be logged in at the same time (eg Windows XP with FUS enabled),
you'll only detect the first user with that method (but there may be some
way around this problem).
Jul 21 '05 #2
Elp

"Elp" <ro********@REMOVEME.hotmail.com> wrote in message
news:eX**************@TK2MSFTNGP09.phx.gbl...

"Dan S" <Da**@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
I am writing a Windows Service Application and want to be able to
capture when the user is logging into Windows. Is there any way within .NET to do
this? Basically, I need the equivalent to the SystemEvents.SessionEnded
event.

A quick and dirty way to do that would be to detect when the process
explorer.exe starts.


And i forgot to add that i am not aware of any proper way of doing what
you´re asking for. Have a look at that though:
http://support.microsoft.com/default...en-us%3b151424
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan S | last post by:
I am writing a Windows Service Application and want to be able to capture when the user is logging into Windows. Is there any way within .NET to do this? Basically, I need the equivalent to the...
5
by: ashutosh.bhardwaj1980 | last post by:
Hi, I amdeveloping a web site in ASP and it is a secure site. I would like someone to help me on this: -->i dont want 2 users to accesss my site with the same username parallely. --> Also...
8
by: Zvonko | last post by:
Hi! Is it possible to capture an event when user leaves the page and execute some code? Not when he closes the window. Any ideas?
14
by: Brent Burkart | last post by:
I am trying to capture the Windows Authenticated username, but I want to be able to capture the login name that exists in IIS, not Windows. In order to enter my company's intranet through the...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
2
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the...
5
by: rockdale | last post by:
Hi, all: I have a website with its own login page. Now one of my clients want their employees log into my website from their website. They want to have their login page (look and feel are...
0
by: Jean | last post by:
Hi, I have a question about logins and sql server express and an ASP.NET aplication. I put this question in sql server newsgroup, but without real answer sofar. I created a login 'Network...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
4
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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.