Service Event not triggered

  • Thread starter Thread starter Saqib Saleem
  • Start date Start date
S

Saqib Saleem

Hi,

I have developed a windows service that catches the Login, LogOff, Lock
(Ctrl+Alt+Del), Restart/ Cold boot events and write in a log file.

The service executes perfectly on on normal desktop pc with windows xp but
when it is executed on a tough book with Embedded Xp installed, it does not
fire the OnSessionChange event.

Can anybody tell that what is missing in between. Following namespaces are
used in it:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.IO;
using System.Xml;
 
Where ? on Embedded XP system !

I'm using .Net 2005 Framework 2.0.

waiting for reply
 
Thanks for the reply.

But there is no Visual Studio installed on Embedded XP system, just the
required components for the applications.

waiting ...

regards
 
Since this is a terminal services function, make sure you have wtsapi32.dll
on your xp embedded system.
 
Hi

wtsapi32.dll file is placed in \Windows\System32

what else could it be becaus its still not working

Regards
Saqib
 
From http://msdn.microsoft.com/en-us/library/ms933127.aspx

To add Terminal Services to your configuration

In Target Designer, add the Terminal Services macro component to your
configuration.
- or -

Add the following components to your configuration:

Terminal Server Remote Desktop
Terminal Services Core Management Tools
Terminal Services Web Control Extension
Terminal Services WMI Provider
The default settings of these components do not need to be changed.

Add the Windows Logon (Standard) component to your configuration.
Note Terminal Services require the authentication features included in
Windows Standard Logon, and therefore do not work with the Minlogon
component.
 
Back
Top