Re: Finding what user is logged in.

From: Eric Perlin [MS] (ericperl_at_online.microsoft.com)
Date: 09/16/05


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.
>> 


Relevant Pages

  • Re: session data missing
    ... well so far i couldn't see any pattern. ... i use forms authentification, below ... user in a session object. ... Do you receive a notification of every error? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SQL Server Alert doesnt fire :(
    ... You may want to modify a row in each session as ... > Alert If counter: rises above 2. ... > I expect a notification when I have active transactions> 2. ...
    (microsoft.public.sqlserver.server)
  • Disable/Suppress Carrier-based notifications/balloons/tool-tips [Balance remaining etc.] in
    ... each sms or each 3G session! ... messages in succession because the pop-up effectively hinders your ... carrier notification is when you send a command with *646* to T-Mobile ...
    (microsoft.public.pocketpc.developer)
  • Re: Notification on J2EE session deletion
    ... Tim Slattery wrote: ... and if he does the J2EE server will delete his session when some period of time has gone by. ... sessionDestroyed is called as a "Notification that a session is about to ...
    (comp.lang.java.programmer)