Article View: borland.public.csharpbuilder.language.csharp
Article #450Re: Rebooting from a program
From: Joe Mayo
Date: Thu, 18 Nov 2004 21:42
Date: Thu, 18 Nov 2004 21:42
61 lines
2997 bytes
2997 bytes
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:
<419d1730$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<419b5260@newsgroups.borland.com> <419c0335$1@newsgroups.borland.com> <419ceff0$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: "Joe Mayo" <jmayo@nospam.mayosoftware.com> Newsgroups: borland.public.csharpbuilder.language.csharp References: <419b5260@newsgroups.borland.com> <419c0335$1@newsgroups.borland.com> <419ceff0$1@newsgroups.borland.com> Subject: Re: Rebooting from a program Date: Thu, 18 Nov 2004 14:42:17 -0700 Lines: 63 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 67.176.104.159 Message-ID: <419d1730$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100814128 67.176.104.159 (18 Nov 2004 13:42:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail