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
CorsoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.