Initialize the NumSDK Environment (e.g. Logging, configuration, database connection, Licensing, etc.)
More...
|
int __stdcall | NDK_Init (LPCWSTR szBaseName, LPCWSTR szDataPath, long consoleAppTimeout, unsigned int *pClientToken) |
| This NDK_Init function must be called during client application initialization, and before calling other functions in the SDK. It does the following:
|
|
int __stdcall | NDK_Shutdown (BOOL cleanup, unsigned int uClientToken) |
| released resources used by the NDK library.
|
|
Initialize the NumSDK Environment (e.g. Logging, configuration, database connection, Licensing, etc.)
◆ NDK_Init()
int __stdcall NDK_Init |
( |
LPCWSTR | szBaseName, |
|
|
LPCWSTR | szDataPath, |
|
|
long | consoleAppTimeout, |
|
|
unsigned int * | pClientToken ) |
Initializes the ststistics and time-series (aka., NDK) Library.
- Parameters
-
[in] | szBaseName | (Required) is the application name (user-defined), but must match the configuration base filename. |
[in] | szDataPath | (Optional) is the full path of the data directory, where X12 and X13 files are created. If NULL, NDK uses to the temporary directory in the current user's profile. |
[in] | consoleAppTimeout | (Optional) is the timeout setting (in milliseconds) for waiting on console applications (e.g., x12a or x13) to finish. If value set to zero, the function revert to a default value of 30000 milliseconds. |
[out] | pClientToken | (Required) is a pointer to a variable that receives a unique integer value (token) to use during the shutdown. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Examine the sdk licensing,
- Setup the temporary folder for running X12 and X13 processes.
- Set the timeout option for running external processes.
- Return values
-
- Example
wchar_t szAppName[]=L"MyApp";
unsigned int uClientToken=-1;
NULL,
0L,
&uClientToken);
if( nRet >= NDK_SUCCES){
...
....
}
int __stdcall NDK_Init(LPCWSTR szBaseName, LPCWSTR szDataPath, long consoleAppTimeout, unsigned int *pClientToken)
This NDK_Init function must be called during client application initialization, and before calling ot...
Definition SFSDK.cpp:85
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFSDK.h (include Windows.h) |
Library | SFSDK.lib |
DLL | SFSDK.dll |
- Since
- v1.68
- See also
-
◆ NDK_Shutdown()
int __stdcall NDK_Shutdown |
( |
BOOL | cleanup, |
|
|
unsigned int | uClientToken ) |
Frees and releases resources used by the SFSDK Library
- Parameters
-
[in] | cleanup | (Required) is a flag. If true, the NDK_Shutdown() deletes all data files generated in the data directory |
[in] | uClientToken | (Required) Is the NDK token id (acquired during initialization).
|
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- Example
wchar_t szAppName[]=L"MyApp";
unsigned int uClientToken=-1;
nRet =
NDK_Init( szAppName, NULL, 0L, &uClientToken);
if( nRet >= NDK_SUCCES){
...
...
...
}
}
int __stdcall NDK_Shutdown(BOOL cleanup, unsigned int uClientToken)
released resources used by the NDK library.
Definition SFSDK.cpp:232
- Requirements
Requirement | Value |
Target Platform | Windows |
Header | SFSDK.h (include Windows.h) |
Library | SFSDK.lib |
DLL | SFSDK.dll |
- Since
- v1.68
- See also
-