I wanna learn about SysSleep, but found it as a System use only function,
and this kind of function has no documentation. Please, tell me what means
these 2 booleans parameters...

Fabr�cio de Paula


----- Original Message -----
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 6:57 AM
Subject: Re: Power off progrmaticaly


> On Thu, 28 Mar 2002, Christophe HOCMAN wrote:
> > I've try this first :
> >     EventType evtStop;
> > //...
> >     MemSet(&evtStop, sizeof(evtStop), 0);
> >     evtStop.eType = keyDownEvent;
> >     evtStop.data.keyDown.chr = powerOffChr;
> >     EvtAddEventToQueue (&evtStop);
> > but it do nothing....
> >
> > Then someone tell me to try :
> >     EvtEnqueueKey(vchrPowerOff, 0, commandKeyMask);
> >
> > but It seams not to do nothing...
>
>   you have to let the system process it.. try calling something like
>   "SysHandleEvent(&evtStop)" instead of adding it to the event queue :)
>   [jump the gun] :P
>
>   or, call, SysSleep(false, false) - but, do a bit of research on the
>   topic before you do this - its not recommended, but, it works.
>
> // az
> [EMAIL PROTECTED]
> http://www.ardiri.com/
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to