> In order to disable the Pref/General option of "Beam receive". We have tried: > > 1. > DWord beam = true; > PrefSetPreference(prefBeamReceive, beam); > > 2. > PrefSetPreferences(&p); where p.beamReceive = false previously > > 3. > IrLocalBusy(UInt refNum, true);
Joe & Scott got it right. Use the ir[Get|Set]ScanningMode operation in ExgLibControl. In Palm OS 4.0, I added a new pair of operations ir[Suppress|Restore]Scanning. The advantage of these is that if you reset the device while beaming is suppressed, the user's preference will be restored. If you use irGetScanningMode to read the user's preference and then disabled scanning with irSetScanningMode, a subsequent reset that occurs before you use IrSetScanningMode to restore the user's preference will result in Beam Receive being turned off. The user isn't likely to notice this until he discovers that he can't receive beams. Of course, you have to use ir[Get|Set]ScanningMode in Palm OS 3.0 through 3.5. -- Danny @ Palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
