🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6928

Re: What is this code good for?

#6928
From: Remy Lebeau (TeamB)
Date: Mon, 04 Apr 2005 05:54
20 lines
1595 bytes
"Grety" <valid@emailaddress.com> wrote in message
news:4250d548@newsgroups.borland.com...

> Then it seems that I have to add a line (maybe more) to
> the last line to make it shutdown.

You need to call ExitWindows/Ex() to perform the actual shutdown.  The code
you have show so far only sets up the process for having the rights to call
ExitWindows/Ex().

> Is it different in WinXP? I guess there is some difference
> between Win98 and WinXP codes to shutdown the OS.

The difference is that Win98 does not implement access rights at all,
whereas all NT-based versions (NT4, Win2K, XP, Win2K3) do.  The code you
posted earlier has no effect on Win98.


Gambit
Technical Details
Message-ID: <4250d63d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <425037b0@newsgroups.borland.com> <42505453$1@newsgroups.borland.com> <4250d548@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fdf971a7398016b1
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <425037b0@newsgroups.borland.com> <42505453$1@newsgroups.borland.com> <4250d548@newsgroups.borland.com>
Subject: Re: What is  this code good for?
Date: Sun, 3 Apr 2005 22:54:39 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4250d63d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112593981 68.69.17.41 (3 Apr 2005 22:53:01 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail