2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include <intuition/preferences.h>
8 #include <proto/exec.h>
9 #include "intuition_intern.h"
11 /*****************************************************************************
14 #include <proto/intuition.h>
16 AROS_LH2(struct Preferences
*, GetPrefs
,
19 AROS_LHA(struct Preferences
* , prefbuffer
, A0
),
20 AROS_LHA(WORD
, size
, D0
),
23 struct IntuitionBase
*, IntuitionBase
, 22, Intuition
)
26 Gets a copy of the current Preferences structure.
29 prefbuffer - The buffer which contains your settings for the
31 size - The number of bytes of the buffer you want to be copied.
34 Returns your parameter buffer.
43 GetDefPrefs(), SetPrefs()
47 *****************************************************************************/
51 DEBUG_GETPREFS(dprintf("GetPrefs: Buffer 0x%lx Size 0x%lx Inform %d\n",
54 if (prefbuffer
!= NULL
&& size
!= 0)
56 ULONG lock
= LockIBase(0);
58 CopyMem(GetPrivIBase(IntuitionBase
)->ActivePreferences
,
60 size
<= sizeof(struct Preferences
) ? size
: sizeof(struct Preferences
));
65 return (struct Preferences
*)prefbuffer
;