Re: Force Reboot

From: Hari Seldon (HariSeldon_at_discussions.microsoft.com)
Date: 11/24/04

  • Next message: Paul G. Tobey [eMVP]: "Re: Force Reboot"
    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?
    >
    >
    >


  • Next message: Paul G. Tobey [eMVP]: "Re: Force Reboot"

    Relevant Pages

    • Re: Problem in developing newsreader in vb.net
      ... Here is the code for posting to newsgroup: ... public void Post(string newsgroup, string subject, string from, string ... Send me code for posting article in vb.net ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Problem in developing newsreader in vb.net
      ... Here is the code for posting to newsgroup: ... public void Post(string newsgroup, string subject, string from, string ... Send me code for posting article in vb.net ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Write File to Network Drive using Wi Fi connection
      ... Declare Function WNetAddConnection Lib "mpr.dll" Alias ... "WNetAddConnectionA"(ByVal lpszNetPath As String, ByVal lpszPassword As ... > been some traffic on doing this before, so check the newsgroup archives. ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Help on Regular Expression
      ... > I didn't know which newsgroup to post, so I'm posting here hoping to get ... > MyObject.ExecuteWhatever(parama, paramB, paramC...) ... > So I want to get the string from .Execute... ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Force Reboot
      ... Google, archives the newsgroup. ... > String, ByVal lnOutBufferSize As Long, ByVal lpBytesReturned As Long) As ... >> Paul T. ...
      (microsoft.public.windowsce.embedded.vb)