I think you're best off with just disabling the on-board sound.
Windows, as a multi-user operating system, keeps user specific settings in
a user hive in the registry. When nobody is logged in at the console,
there IS not place where this data is kept in memory - it is built when the
user logs in and their shell establishes an interactive login.
Because a user COULD log in and try and do something while a service or
non-winstation log-in is running, in general, background processes are not
given control over the local user settings in this way. Sound settings are
user settings because people could have different volume preferences, etc.
Sorry we couldn't find an easier way than the SDK route. There may be more
windows control in Media Center - but I can't be certain (I'm a WS guy, not
a media guy!)
Dan
--------------------
From:
pe****@bigfoot.com
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Re: How do I change control panel settings for Web Service User
Account in XP
Date: 20 Dec 2004 14:52:20 -0800
Organization:
http://groups.google.com
Lines: 23
Message-ID: <11**********************@c13g2000cwb.googlegroups .com>
References: <11*********************@f14g2000cwb.googlegroups. com>
<Hx**************@cpmsftngxa10.phx.gbl>
NNTP-Posting-Host: 83.216.133.252
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1103583150 29332 127.0.0.1 (20 Dec 2004
22:52:30 GMT)
X-Complaints-To:
gr**********@google.com
NNTP-Posting-Date: Mon, 20 Dec 2004 22:52:30 +0000 (UTC)
In-Reply-To: <Hx**************@cpmsftngxa10.phx.gbl>
User-Agent: G2/0.2
Complaints-To:
gr**********@google.com
Injection-Info: c13g2000cwb.googlegroups.com; posting-host=83.216.133.252;
posting-account=hPZSSAwAAADGhAEdCOYXeiopISUHKO6m
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!news.maxwell.syr.edu!postn ews.google.com!c13g2000cwb
.googlegroups.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8227
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Thanks a million Dan, I know it could go crazy in a multi-user scenario
but it's just for a home audio solution so there's only me. I'm not
sufficiently technical to go down the SDK route so I'll keep looking.
I've managed to get it to use the correct card by disabling the
on-board but I still need to change the default device for Audio in the
Sounds & Audio devices option..
Dan Rogers wrote:
Hi,
Making a web service play sounds on a given machine or card is not
advisable. In multi-user scenarios (where each service request is a
different log-in) you will get unexpected collissions at the sound
card.
If you MUST write a hardware dependent algorithm, you may want to use
the SDK that comes with the sound cards themselves, rather than rely on
the generic Windows