473,651 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2907
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*******@ramb ler.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 "interactiv e
windows station" from ASP.NET.
ASP.NET (as IIS) runs in the context of a non-interactive window stations .

Willy.
"Olex Malko" <al*******@ramb ler.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******** ******@TK2MSFTN GP09.phx.gbl...
You can't access "windows" that run's in the context of the "interactiv e
windows station" from ASP.NET.
ASP.NET (as IIS) runs in the context of a non-interactive window stations ..
Willy.
"Olex Malko" <al*******@ramb ler.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*******@ramb ler.ru> wrote in message
news:c6******** *@mfdebug.isd.d p.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******** ******@TK2MSFTN GP09.phx.gbl...
You can't access "windows" that run's in the context of the "interactiv e
windows station" from ASP.NET.
ASP.NET (as IIS) runs in the context of a non-interactive window stations

.

Willy.
"Olex Malko" <al*******@ramb ler.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
2914
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 starting is that it has a welcome window first which gets displayed and then the real windows after a while,in other words it means that the process name is the same, but the handle I need to retrive is the one from the final window and not the...
2
10692
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 = CreateObject("Excel.Application") objWorkBook = objExcel.Workbooks.Open(targetfilename) * targetfilename is a variable that stores the excel file name and path. In the error handler,
10
16485
by: zhou | last post by:
in Visual Basic ,I use Appactivate(AcadApp.caption);
3
1764
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 creating a new one. The part of code is like - I have one function which returns the instance of the
3
1019
by: ucasesoftware | last post by:
how to have only one instance of my application ?
3
1666
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 declared FindWindow function in assembly WindowsApplication3. If the WindowsApplication2 is running ,then WindowsApplication2 getfocus . WindowsApplication2 has a form named Form1
3
8831
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 instance of it running, period. Thx, -Tom
12
2133
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 wrong): Dim thSleep As New Thread(AddressOf AppSleep) Sub AppSleep() Do Thread.Sleep(500)
3
2684
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 application with a GUI interface as well (let's call it BASE). I don't have access to the code of this application. This application has hooks through which other applications can be called. I have defined a hook in this application which bring up...
0
8345
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8570
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6156
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4279
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2694
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1904
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1584
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.