CompuServe Thread

Forum unknown · Programming

#SetPrefs() question

3 messages in this thread
#126351From: JEFFREY COHENMay 24, 1988 4:19 PM
Can someone give me a clue as to the calling sequence of the SetPrefs() routine? I can't find a description of it in either the RKM or Intuition manuals, and only found a vague mention of it in another book.
#126464From: John DraperMay 25, 1988 4:26 AM
Jeffrey… this is from the autodocs: Prefs = SetPrefs(PrefBuffer, Size, Inform) D0 A0 D0 D1 struct Preferences *Prefs; struct Preferences *PrefBuffer; int Size; BOOL Inform; FUNCTION Sets new Preferences values. Copies the first 'Size' bytes from your Preferences buffer to the system Preferences table, and puts them into effect. The 'Inform' parameter, if TRUE, indicates that a NEWPREFS message is to be sent to all Windows that have the NEWPREFS IDCMPFlag set. It is legal to set a partial copy of the Preferences structure. The most frequently changed values are grouped at the beginning of the Preferences structure. INPUTS PrefBuffer = pointer to the memory buffer which contains your desired settings for Intuition Preferences Size = the number of bytes in your PrefBuffer, the number of bytes you want copied to the system's internal Preference settings Inform = whether you want the information of a new Preferences setting propogated to all windows. RESULT Returns your parameter PrefBuffer.
#126464From: John DraperMay 25, 1988 4:26 AM
Jeffrey… this is from the autodocs: Prefs = SetPrefs(PrefBuffer, Size, Inform) D0 A0 D0 D1 struct Preferences *Prefs; struct Preferences *PrefBuffer; int Size; BOOL Inform; FUNCTION Sets new Preferences values. Copies the first 'Size' bytes from your Preferences buffer to the system Preferences table, and puts them into effect. The 'Inform' parameter, if TRUE, indicates that a NEWPREFS message is to be sent to all Windows that have the NEWPREFS IDCMPFlag set. It is legal to set a partial copy of the Preferences structure. The most frequently changed values are grouped at the beginning of the Preferences structure. INPUTS PrefBuffer = pointer to the memory buffer which contains your desired settings for Intuition Preferences Size = the number of bytes in your PrefBuffer, the number of bytes you want copied to the system's internal Preference settings Inform = whether you want the information of a new Preferences setting propogated to all windows. RESULT Returns your parameter PrefBuffer.