mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
/*
|
|
* utility functions to read and write values to the profile,
|
|
* using mmtools.ini for Win16 or current user\software\microsoft\mm tools
|
|
* in the registry for Win32
|
|
*/
|
|
|
|
/*
|
|
* read a BOOL flag from the profile, or return default if
|
|
* not found.
|
|
*/
|
|
BOOL mmGetProfileFlag(LPSTR appname, LPSTR valuename, BOOL bDefault);
|
|
|
|
/*
|
|
* write a boolean value to the registry, if it is not the
|
|
* same as the default or the value already there
|
|
*/
|
|
VOID mmWriteProfileFlag(LPSTR appname, LPSTR valuename, BOOL bValue, BOOL bDefault);
|
|
|
|
/*
|
|
* read a UINT from the profile, or return default if
|
|
* not found.
|
|
*/
|
|
UINT mmGetProfileInt(LPSTR appname, LPSTR valuename, UINT uDefault);
|
|
|
|
/*
|
|
* write a UINT to the profile, if it is not the
|
|
* same as the default or the value already there
|
|
*/
|
|
VOID mmWriteProfileInt(LPSTR appname, LPSTR valuename, UINT uValue, UINT uDefault);
|
|
|
|
/*
|
|
* read a string from the profile into pResult.
|
|
* result is number of bytes written into pResult
|
|
*/
|
|
DWORD
|
|
mmGetProfileString(
|
|
LPSTR appname,
|
|
LPSTR valuename,
|
|
LPSTR pDefault,
|
|
LPSTR pResult,
|
|
int cbResult
|
|
);
|
|
|
|
|
|
/*
|
|
* write a string to the profile
|
|
*/
|
|
VOID mmWriteProfileString(LPSTR appname, LPSTR valuename, LPSTR pData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|