TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Olof Lagerkvist
date: 2004-06-17 16:53:00
subject: Re: How to do RegisterSer

Eric wrote:

> Olof Lagerkvist  wrote in message
news:...
> 
>>Eric wrote:
>>
>>
>>>I want to use the RegisterServiceProcess API in both Win 98 and Win
>>>NT, but Win NT seems to not support RegisterServiceProcess, is there
>>>an alternative?
>>
>>If you have used RegisterServiceProcess() in Win 9x just to prevent your 
>>process from being displayed in the Task List, there is no such thing in 
>>Windows NT. Windows NT Task Manager always displays all processes 
>>running on the system (except on Terminal Services, but that's another 
>>story).
> 
>    I want my program not to show up in the Alt+Tab list and in the
> Task Manager (or at least not under the Application tab in the Task
> Manager). So isn't the best way to do is to register the program as a
> service? If so, is there an API to do that in NT?

No, it is not the best way, it does not work that way at all in NT. 
Everything displaying one or more top-level windows (windows without 
owners) on the user's desktop will show when Alt+Tab is pressed or on 
the applications tab in Task Manager. So, if you do not create any 
windows or only windows with other applications' windows as owners your 
application is not displayed there.

Beginning with Windows 2000 this has changed a little, not only real 
top-level windows are displayed. E.g. open a properties dialog in the 
Control Panel and press Alt+Tab, in NT 4 it is not displayed there but 
in 2000 and later it is and I dont know exactly which windows are 
displayed there in Windows 2000. Is there someone else who knows that?

-- 
Olof Lagerkvist
ICQ: 724451
Web page: http://here.is/olof
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/17/04 4:53:22 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.