What I want is fairly simple, a button on the screen which turns off the PDA
when the user clicks it. I've tried a couple of different methods, one which
works but only turns off the screen and ExitWindowsEx which looked like it
was going to work (from what I read on google) but didn't. I'm using C# if
that makes any difference.

Many thanks,
Michael

Re: Shutdown in code by ctacke/>

ctacke/>
Tue Jul 19 20:22:04 CDT 2005

P/Invoke GwesPowerOff or send a VK_OFF keyboard message. Both are well
documented in the newsgroup archives at Google.

-Chris

"Michael C" <mculley@NOSPAMoptushome.com.au> wrote in message
news:umVE2jMjFHA.2472@TK2MSFTNGP15.phx.gbl...
> What I want is fairly simple, a button on the screen which turns off the
> PDA when the user clicks it. I've tried a couple of different methods, one
> which works but only turns off the screen and ExitWindowsEx which looked
> like it was going to work (from what I read on google) but didn't. I'm
> using C# if that makes any difference.
>
> Many thanks,
> Michael
>



Re: Shutdown in code by Michael

Michael
Tue Jul 19 22:46:18 CDT 2005

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
news:OuObqmMjFHA.3316@TK2MSFTNGP14.phx.gbl...
> P/Invoke GwesPowerOff or send a VK_OFF keyboard message. Both are well
> documented in the newsgroup archives at Google.

perfect thanks. I did do quite a lot of searching but didn't manage to find
GwesPowerOff.

Michael



Re: Shutdown in code by Moreno

Moreno
Tue Jul 19 23:04:40 CDT 2005

keybd_event + VK_OFF

"<ctacke/>" <ctacke_AT_OpenNETCF_com> ¦b¶l¥ó
news:OuObqmMjFHA.3316@TK2MSFTNGP14.phx.gbl ¤¤¼¶¼g...
> P/Invoke GwesPowerOff or send a VK_OFF keyboard message. Both are well
> documented in the newsgroup archives at Google.
>
> -Chris
>
> "Michael C" <mculley@NOSPAMoptushome.com.au> wrote in message
> news:umVE2jMjFHA.2472@TK2MSFTNGP15.phx.gbl...
> > What I want is fairly simple, a button on the screen which turns off the
> > PDA when the user clicks it. I've tried a couple of different methods,
one
> > which works but only turns off the screen and ExitWindowsEx which looked
> > like it was going to work (from what I read on google) but didn't. I'm
> > using C# if that makes any difference.
> >
> > Many thanks,
> > Michael
> >
>
>



Re: Shutdown in code by Michael

Michael
Tue Jul 19 23:31:18 CDT 2005

"Moreno" <moreno@yahoo.com> wrote in message
news:OVsSW$NjFHA.3448@TK2MSFTNGP12.phx.gbl...
> keybd_event + VK_OFF

If preferred the GwesPowerOff API call.

Michael