|
|
#1 |
|
Junior Member
Join Date: Jan 2003
Posts: 2
|
FindWindow from an ATL COMponent
Hi,
First of all I would like to apologise if this has been asked before. I'm trying to create a component to control an instance of winamp from an asp script. I've got this far: code: The FindWindow method code works fine from a normal console executable, but from a COM object it always returns 0. I know it is something to do with permissions, as asp is running under the restricted IUSR account. I'm sure I can do something simple to make this work and I'm not terribly concerned about security at this stage. Please help me out. Thanks for your time, Rob. |
|
|
|
|
|
#2 |
|
Junior Member
|
I would try changing the context that IIS runs in to Local System account and enable interaction with the desktop. Should be able to find this in the Services section of Administrative Tools.
Finding windows might constitute "interacting with the desktop", so this could be where the block is. There are also options in the IIS administrator to change the isolation level of ASP scripts. That might be a place to look. You could create a new virtual directory with different security settings and put your ASP script there. Hope this helps. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2003
Posts: 2
|
I found that IIS was already running as SYSTEM, but I checked 'allow interacton with desktop'. I had to also change the isolation level to low, as you said, for my virtual directory.
Thanks, it worked a treat! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|