Mega Search
23.2 Million


Sign Up

Make a donation  
Windows Service  
News Group: borland.public.delphi.nativeapi.win32

Hi,

I am trying to run a win32 form application by a windows service. Is it 
possible?

The application runs, but appears to be "dead". No action, no form, nothing, 
just an image on task manager.

Thanks,

Humberto Souza 



Vote for best question.
Score: 0  # Vote:  0
Date Posted: 25-Dec-2007, at 11:48 PM EST
From: Humberto Souza
 
Re: Windows Service  
News Group: borland.public.delphi.nativeapi.win32
Thanks for that information... 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 2-Jan-2008, at 5:39 PM EST
From: Mervin Pearce [SACS]
 
Re: Windows Service  
News Group: borland.public.delphi.nativeapi.win32
"Mervin Pearce [SACS]"  wrote in message
news:477b12b3@newsgroups.borland.com...

> Make sure it is 'Interactive' to the Desktop...

You should NOT do that!  Interactive services are no longer supported by
Microsoft as of Vista.  The design principles that apply to using UIs in
services have been less strictly, but high recomended, in older OS versions
for years, but are strictly enforced in Vista now.  It is not good practice
to have any UIs in services at all.

As for launching interactive processes from a service, that is a separate
issue, and can be accomplished by making use of the lpDesktop parameter of
the STARTUPINFO structure when calling CreateProcess().


Gambit



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Jan-2008, at 8:40 PM EST
From: Remy Lebeau \(TeamB\)
 
Re: Windows Service  
News Group: borland.public.delphi.nativeapi.win32
Make sure it is 'Interactive' to the Desktop... 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 2-Jan-2008, at 6:29 AM EST
From: Mervin Pearce [SACS]
 
Re: Windows Service  
News Group: borland.public.delphi.nativeapi.win32
"Humberto Souza"  wrote in message
news:4771b2f7$1@newsgroups.borland.com...

> I am trying to run a win32 form application by a windows service.

Why?

> Is it possible?

Technically yes, but is very difficult to get working properly.  What are
you trying to accomplish in the first place?


Gambit



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 25-Dec-2007, at 9:48 PM EST
From: Remy Lebeau \(TeamB\)