I confirm this is just like a C BPoint: #include <Message.h> #include <File.h> #include <stdio.h> typedef struct { bigtime_t key_repeat_delay; int32 key_repeat_rate; float pref_window_x; float pref_window_y; } kb_info; int main(int argc, char **argv) { BApplication app(); // useful ? kb_info ki; BFile f(argv[1], O_RDONLY); f.Read(&ki, sizeof(kb_info)); printf("delay: %lld, rate: %ld, (%2.2f, %2.2f)\n", ki.key_repeat_delay, ki.key_repeat_rate, ki.pref_window_x, ki.pref_window_y); } En réponse à Jonathan Tarbox <jtarbox@xxxxxxxxxxxxx>: > a BPoint would fit in there perfectly. > > -jtarbox > > ----- Original Message ----- > From: "Marcus Overhagen" <dos4gw@xxxxxx> > To: <openbeos@xxxxxxxxxxxxx> > Sent: Thursday, January 17, 2002 10:35 AM > Subject: [openbeos] Re: Preferences/File Help > > > > Franois Revol <revol@xxxxxxx> wrote: > > > > >Though ~/config/settings/Keyboard_settings certainly isn't a > flattened > BMessage > > >more a C struct or something, sadly : > > > > > >[revol@patrick /boot/home/devel]$ ./dumpbm > ~/config/settings/Keyboard_settings > > >BMessage: what = (0x0, or 0) > > > > try: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/open-beos/input_kit/source/li > b/kb_mouse_driver.h > > > > it contains: > > > > // keyboard settings info, as kept in settings file > > > > typedef struct { > > bigtime_t key_repeat_delay; > > int32 key_repeat_rate; > > } kb_settings; > > > > #define kb_settings_file "Keyboard_settings" > > > > > > Only problem: the file is 20 byte on my system, while this > > struct is only 12 byte > > > > This file also descibes the mouse settings file! > > > > good luck. > > > > Marcus > > > > >