473,785 Members | 2,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Identify Which Desktop an App is Running On

Jay
Hey There,
Is it possible to get an unique identifier for a desktop that a
particular app is running from, from a service? If there are two
instances of the app running on different desktops (one desktop is
locked, the other is in use) then the service should have different
values for each one.

Thanks,
Jay
(patelj27b at gmail dot com)

Oct 26 '06 #1
3 1582

"Jay" <pa*******@gmai l.comwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
Hey There,
Is it possible to get an unique identifier for a desktop that a
particular app is running from, from a service? If there are two
How are you identifying a "particular app"? By .exe name? By window title?

OpenInputDeskto p, or else EnumDesktops and EnumDesktopWind ows should let you
find a desktop handle for the desktop. Then
GetUserObjectIn formation can get you the unique name.
instances of the app running on different desktops (one desktop is
locked, the other is in use) then the service should have different
values for each one.

Thanks,
Jay
(patelj27b at gmail dot com)

Oct 26 '06 #2
Jay
Mr. Voigt,
I am going to be identifying the particular app by .exe name,
which I can find, in turn, the Process ID.

-Jay

Ben Voigt wrote:
"Jay" <pa*******@gmai l.comwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
Hey There,
Is it possible to get an unique identifier for a desktop that a
particular app is running from, from a service? If there are two

How are you identifying a "particular app"? By .exe name? By window title?

OpenInputDeskto p, or else EnumDesktops and EnumDesktopWind ows should let you
find a desktop handle for the desktop. Then
GetUserObjectIn formation can get you the unique name.
instances of the app running on different desktops (one desktop is
locked, the other is in use) then the service should have different
values for each one.

Thanks,
Jay
(patelj27b at gmail dot com)
Oct 26 '06 #3
Jay
Mr. Voigt,
Also, if the calling process is a service process, can it get the
input desktop handle from Open InputDesktop? Would it have the correct
window station?

-Jay

Jay wrote:
Mr. Voigt,
I am going to be identifying the particular app by .exe name,
which I can find, in turn, the Process ID.

-Jay

Ben Voigt wrote:
"Jay" <pa*******@gmai l.comwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
Hey There,
Is it possible to get an unique identifier for a desktop that a
particular app is running from, from a service? If there are two
How are you identifying a "particular app"? By .exe name? By window title?

OpenInputDeskto p, or else EnumDesktops and EnumDesktopWind ows should let you
find a desktop handle for the desktop. Then
GetUserObjectIn formation can get you the unique name.
instances of the app running on different desktops (one desktop is
locked, the other is in use) then the service should have different
values for each one.
>
Thanks,
Jay
(patelj27b at gmail dot com)
>
Oct 26 '06 #4

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

Similar topics

1
1325
by: Thug Passion | last post by:
Hi, I've written a type of web spider; now I'd like it to identify itself to servers it crawls over. I'm using VB.NET 2003, XP Home, and a (desktop) Windows Forms app. I'm using the WebClient class to send requess and open read streams. The couple MSDN articles I've found on setting the UserAgent property use a WebRequest & WebResponse pair. But they create a request, then typecast it and set the UserAgent after they've already...
383
12257
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a poor man's DBMS, a broken email server and various other /application/ servers to try and crack the Internet and IS markets. In the case where they didn't spend their own money to get companies to
5
2383
by: TerryWilson | last post by:
I am developing a web based service tool using asp.net that we will distribute with our product. This service tool will be used for remotely configuring the product, problem determination, etc. One thing that I would like to be able to do is display a screen capture of our product running. I have the code to get the screen capture of the desktop and I also know how to send the image back to the client to be displayed. The problem is that...
3
3173
by: Daniel Liberman | last post by:
Hi, everyone. That's my environment: - I have a pocket pc (iPAQ h4350) application developed with VSNET2003/C# that has a SQL Server CE Database, running. That's working fine. Obs: the pocket is NOT supposed to have a wireless conection available. - I have an access database on a standalone desktop running Windows XP, i.e., there is NO guaranteed network connection available. - I've developed a webservice with VSNET2003/C# too to do...
3
2603
by: Michel | last post by:
Hi, I wrote an app in .Net and I whant only 1 instance of this app open for the user; the user open my app, do some works and try to open another instance of my app, I whant to show a message to user to inform him that only one instance is permit and then close the second instance after that. I am able to do this when the user run the application on his PC whit this : Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName) ...
6
2496
by: Pieter | last post by:
Hi, For some procedures that throws exceptions, I would like to show different messages to the user depending on what type of exception he's getting. For instance this one: when the file is locked, I want a messagebox to tell that the user has to close the file first. Is there a way to identify an exception by some kind of unique number or something like this? I don't want to identify it on the Exception Message because some users are...
1
1565
by: 01423481d | last post by:
Hi all Here is a segment of code used to find out all running processes Imports System.Diagnostics .... Dim myProcesses() As Process Dim myProcess As Process
15
7088
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter every second. I remote desktop to the computer hosting this application and run the application. It starts up and displays the counter incrementing every second. If I disconnect the network cable between the two computers for 10 seconds and...
5
56192
by: jodelson | last post by:
Hello all! I am sorry my first post here is a question. I hope to contribute during the posting and replies on this thread. I am stuck for 1 week in a *** stack smashing detected *** bug in my C program running in a i386 desktop with Ubuntu 7.0.4. I would have pasted the code here but its approx 2000 lines. It has a dozen of functions and a main program. gdb backtrace reports the error ocurred at the instruction that return from the main...
0
9643
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...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
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
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4045
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

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.