API for Initializing, configuring, and shutdown the Date and Calendar analytics API.
More...
|
int __stdcall | SFDB_Init (LPCWSTR szBaseFileName, LPCWSTR szResDir, DWORD dwLocale, unsigned int *pClientToken) |
| Initialize/Configure the date/calendar analytics module (SFDBM)
|
|
int __stdcall | SFDB_Shutdown (unsigned int uClientToken) |
| Shutdown the session (e.g. closes files, terminate database connection, etc.)
|
|
A set of functions to configure the date and calendar module, including the calendar database file's location, locality, and filename.
◆ SFDB_Init()
int __stdcall SFDB_Init |
( |
LPCWSTR | szBaseFileName, |
|
|
LPCWSTR | szResDir, |
|
|
DWORD | dwLocale, |
|
|
unsigned int * | pClientToken ) |
initialize and configure the SFDBM module
- Parameters
-
[in] | szBaseFileName | (Required) the base filename of the database file (e.g., spiderxl.db) |
[in] | szResDir | (Optional) the location of the calendar resources files |
[in] | dwLocale | (Required) the MS Locality ID |
[out] | pClientToken | (Required) a pointer to a varaible to hold the calculated integer token used during the calendar facility shutdown |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Demo
LCID dwLocale = 1033;
std::wstring szFileName(TEXT("spiderxl.db"));
nRetCode =
SFDB_Init(szFileName.c_str(), NULL , dwLocale, &uDBMToken);
std::wcout << L" SUCCESS - Date and Calendar module is initialized" << std::endl;
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFDBM.h (include Windows.h) |
Library | SFDBM.lib |
DLL | SFDBM.dll
SFLUC.dll
SFLOG.dll |
- Since
- v1.56
- See also
-
- Examples
- dbm_init.cpp.
◆ SFDB_Shutdown()
int __stdcall SFDB_Shutdown |
( |
unsigned int | uClientToken | ) |
|
shutdown and release resources used by SFDBM Library
- Parameters
-
[in] | uClientToken | (Required) is an integer token acquired during the calendar facility initialization. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Demo
if(uDBMToken != unsigned(-1)){
uDBMToken = unsigned(-1);
}
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFDBM.h (include Windows.h) |
Library | SFDBM.lib |
DLL | SFDBM.dll
SFLUC.dll
SFLOG.dll |
- Since
- v1.68
- See also
-
- Examples
- dbm_init.cpp.