473,396 Members | 1,683 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,396 software developers and data experts.

Process.MainWindowTitle & Win Service

In the code below, I am getting the title as null for all
the process when the function (BisLayer) is called from a
windows service. However the same function when called
from a windows from gives the proper result. I tried to
run the service as localSystem and as administartor but
both gives the same result.

Process[] myProcesses = Process.GetProcesses();
foreach(Process myProcess in myProcesses)
{title = myProcess.MainWindowTitle;}

Thanks,

Rajesh Abraham

Nov 15 '05 #1
2 4233
Read carefully
ms-help://MS.NETFrameworkSDKv1.1/cpguidenf/html/cpconIntroductionToNTService
Applications.htm
and you'll find why

--
Horatiu Ripa
"Rajesh Abraham" <ch******@hotmail.com> wrote in message
news:03****************************@phx.gbl...
In the code below, I am getting the title as null for all
the process when the function (BisLayer) is called from a
windows service. However the same function when called
from a windows from gives the proper result. I tried to
run the service as localSystem and as administartor but
both gives the same result.

Process[] myProcesses = Process.GetProcesses();
foreach(Process myProcess in myProcesses)
{title = myProcess.MainWindowTitle;}

Thanks,

Rajesh Abraham

Nov 15 '05 #2
Hi Ripa,

Thanks for the response. Can you suggest me some articles
or preferable a good book that can get me started with
progrramatically accessing "Window Stations" and Desktops.
I have only C# experience and no C++.

Thanks,

Rajesh ABraham Chacko

-----Original Message-----
Read carefully
ms- help://MS.NETFrameworkSDKv1.1/cpguidenf/html/cpconIntroduct
ionToNTServiceApplications.htm
and you'll find why

--
Horatiu Ripa
"Rajesh Abraham" <ch******@hotmail.com> wrote in message
news:03****************************@phx.gbl...
In the code below, I am getting the title as null for all the process when the function (BisLayer) is called from a windows service. However the same function when called
from a windows from gives the proper result. I tried to
run the service as localSystem and as administartor but
both gives the same result.

Process[] myProcesses = Process.GetProcesses();
foreach(Process myProcess in myProcesses)
{title = myProcess.MainWindowTitle;}

Thanks,

Rajesh Abraham

.

Nov 15 '05 #3

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...
0
by: Rajesh Abraham | last post by:
In the code below, I am getting the title as null for all the process when the function (BisLayer) is called from a windows service. However the same function when called from a windows from gives...
0
by: David Akerman | last post by:
Hi, Background ======== I've written a Web App in C# which controls a pool of Word Applications for mailmerge purposes (not ideal using Word non-interactively I know, but I have explored...
0
by: Frank | last post by:
Hello! I need some help. I am writing a Windows service in C# which is supposed to run on a W2003 Terminal Server. I need to read the MainWindowTitle from specific processes. My service runs...
9
by: DraguVaso | last post by:
Hi, I want my application to bring another application to the Front. I thought best way to do this was by the Process-model: Dim c As Process = Process.GetCurrentProcess() Dim p As Process...
2
by: DraguVaso | last post by:
Hi, I need to do osme handlings with an Internet Explorer Window. The problem is: when the user has one ore more Internet Explorers opened, this is (sometimes) indicated in the Task Manager as...
3
by: RMB | last post by:
Environment: FW 1.x VB.net When making a call to MainWindowTitle from a windows service an empty string is returned. All of the application processes being checked have UI with titles. If I...
5
by: =?Utf-8?B?Z215ZXJz?= | last post by:
Hello, I am attempting to start a cmd.exe process and pass several .vbs scripts (with additional parameters) and then read the output from the scripts and make "notes" in a DataTable (the...
20
by: TomLasky | last post by:
Hi everyone, I ran into a road block and cant seem to find anything on google. I need to check all open windows/processes to see if certain software is running on the system. I was going to go the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
Oralloy
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,...
0
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...
0
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...

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.