At 6:53 PM +0100 20-03-00, Dave Lippincott wrote:
>Is there a way my app can temporarily inhibit the beam receive?  I have a
>sequence of routines that can't be interrupted or data loss will occur.  I
>only want to turn off the beam receive for a short time. Is there a Zen way
>to do it?

Beaming requires the event loop to be running.  So if you just don't call
EvtGetEvent, or don't pass the events on to SysHandleEvent, you will
prevent beaming.  This isn't actually very zen, but a lot of apps do this
by mistake and accidently prevent beaming that way.

There's an API that the OS uses to temporarily disable beaming when it's
doing something important.  I'm not sure if that's public or not though...
because it's still a little shaky how it works.  It's in a public header,
and the name of it is SysUIBusy, and I suppose if you can find it in the
docs you can use it, or if you can't then you've just written a hack.  :-)

                                --Bob



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to