Re: Force Reboot
From: Hari Seldon (HariSeldon_at_discussions.microsoft.com)
Date: 11/24/04
- Previous message: Khalid Rahaman: "Re: Question about DB Development"
- In reply to: Paul G. Tobey [eMVP]: "Re: Force Reboot"
- Next in thread: Paul G. Tobey [eMVP]: "Re: Force Reboot"
- Reply: Paul G. Tobey [eMVP]: "Re: Force Reboot"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 11:39:04 -0800
Mr. Tobey,
Thank you for your response.
Please excuse my ignorance, how do you search the archives? The only search
I know about is on the newsgroup page and that does not give the result you
point me to.
The page pointed to by your response did not point to any usable VB code,
but some research makes me believe that this is the solution that posting is
trying to get to:
Declare Function KernelIoControl Lib "coredll" (ByVal dwIoControlCode As
Long, ByVal lpInBuf As String, ByVal nInBufSize As Long, ByVal lpOutBuf As
String, ByVal lnOutBufferSize As Long, ByVal lpBytesReturned As Long) As
Boolean
Const IOCTRL_HAL_REBOOT = 16842812
Dim lValue As Long
KernelIoControl(IOCTRL_HAL_REBOOT, "", 0, "", 0, lValue)
I see this posting in many places but it does not seem to work, when I try
it I get a “NotSupportedOption” error.
"Paul G. Tobey [eMVP]" wrote:
> Well, not surprisingly, this *has* been covered before, even for eVB. A
> quick search in the archives for "force reboot evb" yields the answer...
>
> http://groups.google.com/groups?hl=en&lr=&threadm=%23J%23Ta8OgCHA.564%40tkmsftngp10&rnum=2&prev=/groups%3Fhl%3Den%26lr%3D%26q%3Dforce%2Breboot%2Bevb%26meta%3Dgroup%253Dmicrosoft.public.windowsce.*
>
> Paul T.
>
> "Hari Seldon" <HariSeldon@discussions.microsoft.com> wrote in message
> news:7EA02C60-5B14-4034-8E9E-76564697EE2D@microsoft.com...
> > How can I force a reboot of CE.Net from within a VB program?
>
>
>
- Previous message: Khalid Rahaman: "Re: Question about DB Development"
- In reply to: Paul G. Tobey [eMVP]: "Re: Force Reboot"
- Next in thread: Paul G. Tobey [eMVP]: "Re: Force Reboot"
- Reply: Paul G. Tobey [eMVP]: "Re: Force Reboot"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|