[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Message from Internet



I assume that you mean you want to set WIN.INI dynamically.

It depends on what you are using to call SQR. To do it you
need some functions that handle profiles. Profiles is just another
term for INI files.

To explain it as generically as possible:

If you have access to DLL functions then use "WriteProfileString"
It is found in KERNEL.EXE as ordinal no 59.

BOOL WriteProfileString(lpszSection, lpszEntry, lpszString)

LPCSTR lpszSection;	/* address of section	*/
LPCSTR lpszEntry;	/* address of entry	*/
LPCSTR lpszString;	/* address of string to write	*/

This function will perform a replace if lpszEntry is already there.

If you can't find the KERNEL.EXE file then its because it doesn't
exist. Its actually an alias for KRNL386.EXE which is found in the
SYSTEM directory.  Using KERNEL.EXE instead of KRNL386.EXE helps
to achieve platform independance.

>Does anyone know how to set the sqr flags in the win.ini file to avoid 
>having to pass the parameters on the command line?
>
>Thanks