ASP.NET application and FindWindow() Windows API function

  • Thread starter Thread starter Olex Malko
  • Start date Start date
O

Olex Malko

How to manage FindWindow() function working properly in ASP.NET application?

In Windows Forms application it works fine. But in ASP.NET it returns NULL
:( Probalby this is because of different context. Something like IIS is ran
under other account or some services cannot interact with desktop.

What exactly should be done to have it working?

Thank you!
 
It depends on how you have the asp.net app configured, which account it is
running under. But you are probably right, that account does not have
sufficient rights. I don't know which rights exactly are needed, but I do
know that most people would cringe at giving such system access to a web
app -- it is a security risk.

Brad Williams
 
You can't access "windows" that run's in the context of the "interactive
windows station" from ASP.NET.
ASP.NET (as IIS) runs in the context of a non-interactive window stations .

Willy.
 
Can I at least right COM object that will use the library with FindWindow()
function and then use that COM in my ASP.NET app ?
 
No you can't.
Not sure what you are trying to achieve here, IIS and asp.net are "server
components", so there is a chance that they run without an interactive logon
session.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top