• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

Not able to use Skype API using Windows Service?

Hi

I have one Windows Service made in Visual C++, which runs on Windows 2000 Professional. My this service runs one more MFC exe when I start my service.

My Dialogbased MFC application uses the Skype API and sends and receives the messages using give functions.

It's working completely fine when I run my MFC application directly. But when I try to run my application using windows service that I have developed, it doesn't receive or send any message. Still my other functions (i.e functions other than Skype) works fine.

So what seems to be the problem? Any idea how to overcome this?

Thankx and regards in advance

Mahesh Amarelia
0
Corsoft
Asked:
Corsoft
1 Solution
 
rajeev_devinCommented:
Do skype provide any DLL.
If yes then put that .DLL file in System32 directory.
0
 
CorsoftAuthor Commented:
I am not sure how the Skype software installs itself but the machine "knows" about it.  I can go Start - Run and pass the name of my MFC executable and it works fine.  My MFC executable has the calls to Skype and when I launch my executable directly (without the service), then my MFC application, including Skype calls, works fine.  It does NOT work when my service invokes my MFC executable.  Any ideas?

Thanks in advance.

Mahesh Amarelia
0
 
jkrCommented:
>>It's working completely fine when I run my MFC application directly. But when I try to run my application using
>>windows service that I have developed, it doesn't receive or send any message.

See http://www.microsoft.com/msj/0398/service2.aspx ("Why Do Certain Win32 Technologies Misbehave in Windows NT Services?")

I assume that your service runs under the LocalSystem account, which has almost admin privileges, but *NO* network access. I'd suggest to create a user account for this sevice explicitly and have the service run under that one. For *testing* purposes, you could just use the Administrator account.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
CorsoftAuthor Commented:
Thanx for giving attention but it's not possible in that way.

I found it on Skype forum. You can go and check this URL.

http://forum.skype.com/viewtopic.php?t=48783
0
 
jkrCommented:
>>but it's not possible in that way.

In that case, try to set the service as 'SERVICE_INTERACTIVE_PROCESS'. I'd give it another shot.
0
 
CorsoftAuthor Commented:
I have already set the service as 'SERVICE_INTERACTIVE_PROCESS', because without setting it in this way, it is not possible to run my MFC application as that is going to interact with desktop.

Thankx
0
 
GranModCommented:
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now