#SetPrefs() question
25-May-88 04:26:14
Sb: #126351-#SetPrefs() question
Fm: John Draper 76703,4322
To: JEFFREY COHEN 72140,414
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
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.