File:  [RetroPC.NET] / xmil / win9x / ini.h
Revision 1.1: download - view: text, annotated - select for diffs
Sun Aug 1 14:31:31 2004 JST (21 years, 3 months ago) by yui
Branches: MAIN
CVS tags: HEAD
initialize


enum {
	INITYPE_STR			= 0,
	INITYPE_BOOL,
	INITYPE_SINT8,
	INITYPE_SINT16,
	INITYPE_SINT32,
	INITYPE_UINT8,
	INITYPE_UINT16,
	INITYPE_UINT32,
	INITYPE_HEX8,
	INITYPE_HEX16,
	INITYPE_HEX32,
	INITYPE_USER,
	INITYPE_MASK		= 0xff,

	INIFLAG_RO			= 0x0100,
	INIFLAG_MAX			= 0x0200,
	INIFLAG_AND			= 0x0400
};

typedef struct {
	char	item[10];
	UINT16	itemtype;
	void	*value;
	UINT32	arg;
} INITBL;


#ifdef __cplusplus
extern "C" {
#endif

void ini_read(const OEMCHAR *path, const OEMCHAR *title,
											const INITBL *tbl, UINT count);
void ini_write(const OEMCHAR *path, const OEMCHAR *title,
											const INITBL *tbl, UINT count);


void initgetfile(OEMCHAR *path, UINT size);
void initload(void);
void initsave(void);

BYTE solveBOOL(LPSTR str);

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>