Thanks. This works.

-----Original Message-----
From: Igor Nesterov [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 13, 2003 7:34 AM
To: Palm Developer Forum
Subject: Re: How do I turn off beaming prefs?


> Is there someone here who can drop me a rope and provide an example of

> this preference change?

>From PowerNet sources.
===
static void SetBeamRecv(Boolean set){
 Boolean b;
 UInt16 lib;
 Err err = SysLibFind(irLibName, &lib);
 if (err != errNone){
  return;
 }
 b = set;
 err = ExgLibControl(lib, irSetScanningMode, &b, NULL);
}
////////////////////////////////////////////////////////////////////////
////
////
static Boolean GetBeamRecv(void){
 //UInt16 len = sizeof(Boolean);
 Boolean b;
 UInt16 lib;
 Err err = SysLibFind(irLibName, &lib);
 if (err != errNone){
  return false;
 }
 err = ExgLibControl(lib, irGetScanningMode, &b, NULL);
 return b;
}



-- 
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