Re: Finding what user is logged in.
From: Eric Perlin [MS] (ericperl_at_online.microsoft.com)
Date: 09/16/05
- Next message: Eric Perlin [MS]: "Re: Maintaining state in Winlogon notification packages"
- Previous message: Andrew Fiddian-Green: "Re: Byte order problems with CAPI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 15 Sep 2005 19:33:45 -0700
Especially if you have a service already, registering for TS session
notifications appears more natural.
Specify SERVICE_ACCEPT_SESSIONCHANGE when calling SetServiceStatus.
-- Eric Perlin [MS] This posting is provided "AS IS" with no warranties, and confers no rights. --- "Narendra" <Narendra@discussions.microsoft.com> wrote in message news:131BB968-33F6-4859-9C7F-E57CF9101632@microsoft.com... > Hi Chuck Chopp! > > How can we use window notification packages? Do we need to write them or > can we utilized already provided one? > > > regards, > narendra. > > > "Chuck Chopp" wrote: > >> peeldog wrote: >> >> > I am trying to write an NT Service that will start a task 5 mins after >> > a user >> > logs out, and terminate it as soon as they log back in again. Should I >> > be >> > using the console Handler routine to catch the logoff event? Or should >> > I >> > poll OpenWindowStation? >> >> On Win2K [w/TS enabled] and Win2K3 servers, as well as WinXP systems, >> I've >> had my services monitor the Terminal Services events so that *any* >> session, >> including the console, can be monitored for logon & logoff events. >> >> There's also Winlogon Notification Packages that you can write that will >> tell you about these sorts of events, too. >> >> >> -- >> Chuck Chopp >> >> ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com >> >> RTFM Consulting Services Inc. 864 801 2795 voice & voicemail >> 103 Autumn Hill Road 864 801 2774 fax >> Greer, SC 29651 >> >> Do not send me unsolicited commercial email. >>
- Next message: Eric Perlin [MS]: "Re: Maintaining state in Winlogon notification packages"
- Previous message: Andrew Fiddian-Green: "Re: Byte order problems with CAPI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|