Help - Search - Members - Calendar
Full Version: Problem conneting from Windows Service
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
Eter_
Hello,

I have a testing program written in C than run perfectly using the Skype API, but when I use the SAME code but from a Windows Service (not a regular process) Skype is not responding when I try to do the SkypeControlAPIDiscover broadcast message, and therefore is not connecting to Skype.

The service is sending the message well because other windows catch the broadcast message, and the service receives messages well because it receives the SKYPECONTROLAPI_ATTACH_API_AVAILABLE message when Skype connects.

I think that Skype performs a check to the program that is trying to connect, and it fails for an strange reason.

Anybody knows why it fails?
thanks in advance!!
GeMe_Hendrix
Well I've finally solved this particular problem. Simply do the following to get your Windows Service communicating with Skype...

- Windows Control Panel
- Administrative Tools
- Services
- Find your Windows Service
- Right click and go to the Service's properties
- Go to the 'Log On' tab
- Select 'Allow service to interact with desktop'
- Click 'OK'
- Now restart the service
- Heh presto, it your service should now communicate ok with Skype!
TheUberOverlord
QUOTE(GeMe_Hendrix @ Mon Oct 15 2007, 04:41) [snapback]452191[/snapback]

Well I've finally solved this particular problem. Simply do the following to get your Windows Service communicating with Skype...

- Windows Control Panel
- Administrative Tools
- Services
- Find your Windows Service
- Right click and go to the Service's properties
- Go to the 'Log On' tab
- Select 'Allow service to interact with desktop'
- Click 'OK'
- Now restart the service
- Heh presto, it your service should now communicate ok with Skype!


There are changes with system services and session 0 ("The ability to interact with the desktop") in Vista please see this:

http://www.microsoft.com/whdc/system/vista/services.mspx
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.