المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : PlaySound method doesn't function in a Win7 Srvany Service



C++ Programming
04-05-2013, 09:30 PM
I have an application that can also run as a service via srvany. It performs a monitoring task and uses the PlaySound method defined in mmsystem.h to play a .wav notification on certain events. It runs fine under XP as an app or as a service.

Under Win7, the app runs fine. But when running as a service under Win7, I get no sound. The "allow service to interact with desktop" option is available but ignored under Win7 as part of Session 0 isolation. I expect this is somehow related.

I'm looking for verification or alternate approaches.

Thanks.