Unable to Playsound using valid user account
I can do this in XP, if the Windows Service is log on using a valid user account.
But cannot get this to work in Vista.
May I know what is missing?Can anyone help me...
Thanks in advance
#2
24-02-2009
Abraham.J
Member
Join Date: Dec 2008
Posts: 69
Re: Unable to Playsound using valid user account
Check Device Manager, any yellow ? or ! marks showing, report shows C-Media as sound adapter, check this to see if default driver
Go to Control Panel / Sound & Audio Devices / Properties / Sound Playback – click on down arrow and check that the correct audio is selected. Typically the problem will be something “modem line 0 playback” has been substituted for the correct audio device.
Hope this helps
#3
24-02-2009
Santanio
Member
Join Date: Jan 2009
Posts: 125
Re: Unable to Playsound using valid user account
This has always been an issue, and I think the fact that it works on XP is more luck than anything else.
Under Windows, only the active session which owns the desktop is allowed to play sound. Services exist in a separate session and do not have access to the desktop by default. The easiest solution is usually to have a client component that runs under the user session and communicates to your service. This client application need not be visible or even own a window. You can set the application to start automatically with the user logon. I don't think there is a way to play sounds anymore without a user logged on. I'm not
read up on the Vista replacement for GINA.
#4
24-02-2009
shilong
Member
Join Date: Dec 2008
Posts: 70
Re: Unable to Playsound using valid user account
1st, user need this application running without logon to Windows.
2nd, this application will continuously monitor event and boardcast via speaker (something like what you heard in Airport terminal).
No comments:
Post a Comment