If you want to change the user preferences as seen in the General panel of the Prefs app, then it's just a matter of using PrefSetPreference. Here is an example of turning on alarm vibrate:
PrefSetPreference(prefAttentionFlags, PrefGetPreference(prefAttentionFlags) | kAttnFlagsVibrateBit); Use "& ~kAttnFlagsVibrateBit" to clear the bit if you want to turn off alarm vibrate. Substitute kAttnFlagsLEDBit to control the LED preference. Note that you generally don't want to mess with the user's preferences. I'll trust that you have a good reason for doing so ;-) -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
