🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #451

Re: Rebooting from a program

#451
From: Ray
Date: Fri, 19 Nov 2004 10:37
88 lines
3701 bytes
Hi Joe

Yes you are quite right, Microsoft have done an amazing job with the .NET 
framework, and it is so rich with features and easy to use (once you find 
out how to do what you want in C#). I maintain applications I wrote in Owl 
and Builder6, and when I get into them now I really appreciate the ease of 
C#.

And a thing I really like is how small the executables are. Look forward to 
Longhorn.

Ray

"Joe Mayo" <jmayo@nospam.mayosoftware.com> wrote in message 
news:419d1730$1@newsgroups.borland.com...
> Hi Ray,
>
> I wouldn't call it missed, but rather I believe that is was conciously not 
> a
> goal to include the entire Win32 API.  If Microsoft was ever to produce a
> product, they had to make a cut somewhere on what was available via the 
> .NET
> Framework class libraries.  With over 8000 types, I believe the effort was
> amazing.  Also, consider the fact that the Win32 API has had several years
> to grow over its lifetime and the amount of functionality they were able 
> to
> put into .NET is even more impressive.  I'm not sure what defined the 
> cutoff
> on what Win32 functionality is wrapped by .NET and what isn't, but I'm 
> sure
> they made their best effort to include those things that people wanted the
> most.  Fortunately, they did have the foresight to give us hooks into the 
> OS
> and legacy systems via P/Invoke, COM Interop, and IJW (C++) so that we 
> could
> do some of the other things we need.
>
> If you look at any of the publicly available material on the next version 
> of
> Windows, codename Longhorn, it appears that the entire API will be 
> managed,
> with backwards compatibility for MS-DOS, Win16 and Win32.  So, my thinking
> is that what isn't included in .NET today will be part of the next version
> of Windows.
>
> Joe
> -- 
> http://www.csharp-station.com
>
> "Ray" <someone@someisp.net> wrote in message
> news:419ceff0$1@newsgroups.borland.com...
>> Thanks Joe
>>
>> Another thing missed off from .NET eh!
>>
>> Ray
>>
>> "Joe Mayo" <jmayo@nospam.mayosoftware.com> wrote in message
>> news:419c0335$1@newsgroups.borland.com...
>> > Hi Ray,
>> >
>> > You'll have to use P/Invoke.  I believe the Win32 API is ExitWindowsEx.
>> >
>> > Joe
>> > -- 
>> > http://www.csharp-station.com
>> >
>> > "Ray" <someone@someisp.net> wrote in message
>> > news:419b5260@newsgroups.borland.com...
>> >> Hi
>> >>
>> >> I want to be able to reboot, or shutdown, the host machine from within
> my
>> >> program. Can't find anything in the Help that gives a clue on how to 
>> >> do
>> >> this.
>> >>
>> >> Can anyone point me in the right direction.
>> >>
>> >> Ray
>> >>
>> >>
>> >
>> >
>>
>>
>
> 
Technical Details
Message-ID: <419dcccd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <419b5260@newsgroups.borland.com> <419c0335$1@newsgroups.borland.com> <419ceff0$1@newsgroups.borland.com> <419d1730$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,42e4821b0d5e8f4
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ray" <someone@someisp.net>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <419b5260@newsgroups.borland.com> <419c0335$1@newsgroups.borland.com> <419ceff0$1@newsgroups.borland.com> <419d1730$1@newsgroups.borland.com>
Subject: Re: Rebooting from a program
Date: Fri, 19 Nov 2004 10:37:02 -0000
Lines: 90
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.56.16.114
Message-ID: <419dcccd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100860621 62.56.16.114 (19 Nov 2004 02:37:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail