Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Type datatype REG_DWORD 272 / Interact with desktop uses some other key?

37 views
Skip to first unread message

moezilla

unread,
Apr 26, 2002, 7:03:57 PM4/26/02
to
the check box under the service manager apparently makes some other
mods to the registry besides the "type" DWORD. Anyone know where this
may be?


To do it programatically call the CreateService() API, and pass the
service
type as SERVICE_INTERACTIVE_PROCESS.

If you use the registry to do the same, make sure to use the correct
data
type for "Type".The data type should be REG_DWORD.

When you did it manually, probably you didn't use the correct data
type.
While using the control panel, system set it correctly for you. The
value is
110 in Hex.


All messages from thread
Message 1 in thread
From: Raj Tilak (t_...@yahoo.com)
Subject: Problem: service to be interactive with desktop
Newsgroups: microsoft.public.windowsnt.registry
View this article only
Date: 2002-03-19 14:02:02 PST

hi registry gurus,
i am newbie here.
The steps i followed in making an application as a service
1. created an application called testservice
2. using "instsrv.exe, srvany.exe and sc.exe" i created a service
with the name "testservice".
3. controlpanel\services\logon\Allow services to interact with
desktop checked the checkbox.
4. started the service it works fine and interacts with the desktop.

My question is:
Is there a way to make this check box active programmatically?

when this registry settings
hkey\localmachine\SYSTEM\currentControlSet\Services\testservice\Type
if the value = 272 then the check box is checked
if the value = 16 then the box is unchecked

but even though the "Allow service to interact with desktop" value is
checked
when i start the service it doesnot interact with the desktop.

but if i uncheck this box and check again and start the service it
works?
any ideas in this one would be great.
Thanks in Advance
newbee.
Message 2 in thread
From: Kallely Sajan (saj...@hotmail.com)
Subject: Re: Problem: service to be interactive with desktop
Newsgroups: microsoft.public.windowsnt.registry
View this article only
Date: 2002-03-19 23:17:35 PST

--
Regards,
Sajan.

PS: Please don't send me emails, use the news room, so that others
also will
be benefited.

"Raj Tilak" <t_...@yahoo.com> wrote in message
news:143fe463.02031...@posting.google.com...
> hi registry gurus,
> i am newbie here.
> The steps i followed in making an application as a service
> 1. created an application called testservice
> 2. using "instsrv.exe, srvany.exe and sc.exe" i created a service
> with the name "testservice".
> 3. controlpanel\services\logon\Allow services to interact with
> desktop checked the checkbox.
> 4. started the service it works fine and interacts with the desktop.
>
> My question is:
> Is there a way to make this check box active programmatically?
>
> when this registry settings
> hkey\localmachine\SYSTEM\currentControlSet\Services\testservice\Type
> if the value = 272 then the check box is checked
> if the value = 16 then the box is unchecked
>
> but even though the "Allow service to interact with desktop" value is
> checked
> when i start the service it doesnot interact with the desktop.
>
> but if i uncheck this box and check again and start the service it
> works?
> any ideas in this one would be great.
> Thanks in Advance
> newbee.


©2002 Google

Kallely Sajan

unread,
Apr 27, 2002, 8:44:04 PM4/27/02
to
I am not sure what you are trying to do. Can you explain your requirement
and reframe the question?

--
Regards,
Sajan.

PS: Please don't send me emails, use the news room, so that others also will
be benefited.

"moezilla" <em...@wideorbit.com> wrote in message
news:b5f34828.02042...@posting.google.com...

0 new messages