Sack Library Documentation
|
IMPORT_METHOD size_t CPROC SACK_GetPrivateProfileString(CTEXTSTR pSection, CTEXTSTR pOptname, CTEXTSTR pDefaultbuf, TEXTCHAR * pBuffer, size_t nBuffer, CTEXTSTR pININame); IMPORT_METHOD S_32 CPROC SACK_GetPrivateProfileInt(CTEXTSTR pSection, CTEXTSTR pOptname, S_32 nDefault, CTEXTSTR pININame); IMPORT_METHOD size_t CPROC SACK_GetProfileString(CTEXTSTR pSection, CTEXTSTR pOptname, CTEXTSTR pDefaultbuf, TEXTCHAR * pBuffer, size_t nBuffer); IMPORT_METHOD int CPROC SACK_GetProfileBlob(CTEXTSTR pSection, CTEXTSTR pOptname, TEXTCHAR ** pBuffer, size_t * pnBuffer); IMPORT_METHOD int CPROC SACK_GetProfileBlobOdbc(PODBC odbc, CTEXTSTR pSection, CTEXTSTR pOptname, TEXTCHAR ** pBuffer, size_t * pnBuffer); IMPORT_METHOD S_32 CPROC SACK_GetProfileInt(CTEXTSTR pSection, CTEXTSTR pOptname, S_32 defaultval); IMPORT_METHOD size_t CPROC SACK_GetPrivateProfileStringEx(CTEXTSTR pSection, CTEXTSTR pOptname, CTEXTSTR pDefaultbuf, TEXTCHAR * pBuffer, size_t nBuffer, CTEXTSTR pININame, LOGICAL bQuiet); IMPORT_METHOD S_32 CPROC SACK_GetPrivateProfileIntEx(CTEXTSTR pSection, CTEXTSTR pOptname, S_32 nDefault, CTEXTSTR pININame, LOGICAL bQuiet); IMPORT_METHOD size_t CPROC SACK_GetProfileStringEx(CTEXTSTR pSection, CTEXTSTR pOptname, CTEXTSTR pDefaultbuf, TEXTCHAR * pBuffer, size_t nBuffer, LOGICAL bQuiet); IMPORT_METHOD S_32 CPROC SACK_GetProfileIntEx(CTEXTSTR pSection, CTEXTSTR pOptname, S_32 defaultval, LOGICAL bQuiet);
Parameters |
Description |
CTEXTSTR pSection |
Path of the option to retrieve. |
CTEXTSTR pOptname |
Actual option name to retrieve. |
CTEXTSTR pDefaultbuf |
Default value if the option doesn't exist already. |
TEXTCHAR * pBuffer |
Pointer to the buffer to get the result |
size_t nBuffer |
size of the result buffer in characters (not bytes). |
CTEXTSTR pININame |
This is the upper level name. If a function does not have a pININame, then the name "DEFAULT' is used. (pass NULL here for non-private) |
LOGICAL bQuiet |
Boolean, if configured to prompt the user for option values, this overrides the default to disable prompting. |
All gets eventually end up here. This function gets a value from a database. Functions which return an 'int' use this function, but has extra processing to convert the text into a number; also if the text is 'Y', or 'y' then the option's int value is 1.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|