Service Event not triggered

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;
 
S

Saqib Saleem

Where ? on Embedded XP system !

I'm using .Net 2005 Framework 2.0.

waiting for reply
 
S

Saqib Saleem

Thanks for the reply.

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

waiting ...

regards
 
J

JS

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

Saqib Saleem

Hi

wtsapi32.dll file is placed in \Windows\System32

what else could it be becaus its still not working

Regards
Saqib
 
J

JS

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top