Try this (I mean, actually write an application that tests it): // This should save and disable system sound. UInt32 oldSndValV2 = PrefGetPreference(prefSysSoundLevelV20); UInt32 oldSndVal = PrefGetPreference(prefSysSoundVolume);
PrefSetPreference(prefSysSoundLevelV20, 1); // slOff PrefSetPreference(prefSysSoundVolume, 0); // minimum volume // Do some tests. I.e. have the above in your form's onOpen handler, and below in it's onClose handler. // This restores, assuming oldSndVal(V2) are still around. PrefSetPreference(prefSysSoundLevelV20, oldSndValV2); PrefSetPreference(prefSysSoundVolume, oldSndVal); The above /should/ work. -- Matthew (Darkstorm) Bevan [EMAIL PROTECTED] Margin Software, NECTI. http://www.marginsoftware.com Re-inventing the wheel, every time. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
