473,322 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ASP.NET application and FindWindow() Windows API function

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!
Nov 16 '05 #1
4 2881
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
"Olex Malko" <al*******@rambler.ru> wrote in message
news:c6**********@mfdebug.isd.dp.ua...
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!

Nov 16 '05 #2
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.
"Olex Malko" <al*******@rambler.ru> wrote in message
news:c6**********@mfdebug.isd.dp.ua...
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!

Nov 16 '05 #3
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 ?

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
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.
"Olex Malko" <al*******@rambler.ru> wrote in message
news:c6**********@mfdebug.isd.dp.ua...
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!


Nov 16 '05 #4
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.

"Olex Malko" <al*******@rambler.ru> wrote in message
news:c6*********@mfdebug.isd.dp.ua...
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 ?

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:ue**************@TK2MSFTNGP09.phx.gbl...
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.
"Olex Malko" <al*******@rambler.ru> wrote in message
news:c6**********@mfdebug.isd.dp.ua...
> 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!
>
>



Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
2
by: Sri | last post by:
I am writing an asp.net applicaition using VB coding. In a function, I am opening an excel file with the following code, Dim objExcel As Object Dim objWorkBook As Object objExcel =...
10
by: zhou | last post by:
in Visual Basic ,I use Appactivate(AcadApp.caption);
3
by: shivaranjani.s.adimulam | last post by:
Hi, I have a problem regarding restoring previous instance of an application minimized in systray.So that when I try to run the application it should maximize its previous instance instead of...
3
by: ucasesoftware | last post by:
how to have only one instance of my application ?
3
by: dahuzizyd | last post by:
Hi all I want to judge an application is runing or not when another application start . If the application is running , get focus. I use the Pinvoke to invoke the FindWindow function ,I...
3
by: Tom Rogers | last post by:
How do I make it so that once my application (.exe) is running, if the user tries to run a second instance of the program, it is not allowed. I want my program to be able to have only one...
12
by: Morten Snedker | last post by:
I open a file for input. Each line is handled individually. Every time a line has been handled I wish to wait for ½ second before reading the next. Am I doing it right or wrong ? (I think it's...
3
by: asadikhan | last post by:
Hi, I have written a windows application with a GUI (let's call it MENU). I own the code for this application and have access to it. We have another application that is a third-part windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.