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) 3 1555
"Jay" <pa*******@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.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?
OpenInputDesktop, or else EnumDesktops and EnumDesktopWindows should let you
find a desktop handle for the desktop. Then
GetUserObjectInformation 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)
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*******@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.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?
OpenInputDesktop, or else EnumDesktops and EnumDesktopWindows should let you
find a desktop handle for the desktop. Then
GetUserObjectInformation 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)
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*******@gmail.comwrote in message
news:11*********************@m73g2000cwd.googlegro ups.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?
OpenInputDesktop, or else EnumDesktops and EnumDesktopWindows should let you
find a desktop handle for the desktop. Then
GetUserObjectInformation 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)
>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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. ...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
| |