Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

How do I change control panel settings for Web Service User Account in XP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pealy2@bigfoot.com - 20 Dec 2004 16:08 GMT
Sorry if this is in the wrong group, I've searched long & hard without
finding anything even slightly useful. (recommendations for a more
relevant group gratefuly received)

I need to change the settings for the default web service user account
so that sounds go through a sound card rather than the on-board sound.
I can do this simply when I'm logged in to my own user account by going
through control panel. If I can't log on as the Web Service account
then I can't get to Control Panel and so can't do it the same way.

Any advice would be gratefully received.
(Web service is vb.net running under XP Pro SP2)
Dan Rogers - 20 Dec 2004 20:02 GMT
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 sound interface in your code.  For instance, Creative has
an SDK that lets you check to see if the card is available,and manipulate
it's capabilities directly.  I haven't tried this, and I would expect
direct hardware access from a web service to be prevented by the service
sandboxing security.

Again, not advisable at all.  

Best of luck

Dan Rogers
Microsoft Corporation
--------------------
From: pealy2@bigfoot.com
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: How do I change control panel settings for Web Service User
Account in XP
Date: 20 Dec 2004 08:08:25 -0800
Organization: http://groups.google.com
Lines: 13
Message-ID: <1103558905.161100.80320@f14g2000cwb.googlegroups.com>
NNTP-Posting-Host: 81.144.201.214
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1103558910 22169 127.0.0.1 (20 Dec 2004
16:08:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 20 Dec 2004 16:08:30 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=81.144.201.214;
  posting-account=hPZSSAwAAADGhAEdCOYXeiopISUHKO6m
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!news.maxwell.syr.edu!postnews.google.com!f14g2000cwb
.googlegroups.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8207
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Sorry if this is in the wrong group, I've searched long & hard without
finding anything even slightly useful. (recommendations for a more
relevant group gratefuly received)

I need to change the settings for the default web service user account
so that sounds go through a sound card rather than the on-board sound.
I can do this simply when I'm logged in to my own user account by going
through control panel. If I can't log on as the Web Service account
then I can't get to Control Panel and so can't do it the same way.

Any advice would be gratefully received.
(Web service is vb.net running under XP Pro SP2)
pealy2@bigfoot.com - 20 Dec 2004 22:51 GMT
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..

> Hi,
>
[quoted text clipped - 5 lines]
> SDK that comes with the sound cards themselves, rather than rely on the
> generic Windows
Dan Rogers - 20 Dec 2004 23:54 GMT
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: pealy2@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: <1103583140.170371.257520@c13g2000cwb.googlegroups.com>
References: <1103558905.161100.80320@f14g2000cwb.googlegroups.com>
  <HxPSD8s5EHA.3200@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: groups-abuse@google.com
NNTP-Posting-Date: Mon, 20 Dec 2004 22:52:30 +0000 (UTC)
In-Reply-To: <HxPSD8s5EHA.3200@cpmsftngxa10.phx.gbl>
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: c13g2000cwb.googlegroups.com; posting-host=83.216.133.252;
  posting-account=hPZSSAwAAADGhAEdCOYXeiopISUHKO6m
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!news.maxwell.syr.edu!postnews.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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.