BWIStatus – Return runtime status information

BWIStatus (item, string, size)

Use this to return status information about the core. You can determine which countries have been initialised or find information required for technical support.

Input parameter

item Long integer. This is the runtime status item to return and can be:
BWI_S_COUNTRY For initialised countries, returns the country IDs and codes separated by colons, for example:

Portugal:12: Spain:13: Netherlands:10: Germany:6: France:5: Belgium:2

BWI_S_ALL_COUNTRY Returns the country IDs and codes for all countries.
BWI_S_TABLES Returns the name, internal date and country of each Database Table File. The date of the main table is returned first with a country name of None. For example:

bwimain.tbl:13/11/2014: None:bwiit.tbl:15/11/2014: Italy:bwies.tbl:13/11/2014: Spain

BWI_S_VERSION Returns the current core version in the format: M.m.xxxx, where:

M = Major version

m = minor version

xxxx = maintenance level.

There may be extra informational data.
BWI_S_V_DEP Returns the names and versions of the common libraries used by the core, for example:

eigeru:1.0.0012: eigerl:1.0.0007: eigers:1.2.0011

BWI_S_V_MIN Returns the names and minimum versions required for the common libraries. The format is the same as BWI_S_V_DEP.

 

size Long integer. This is the size of string in bytes. Your application must check for truncation and reset the size parameter between calls.
Set this to the declared length of the string variable.

Output parameters

string Char. This is the variable in which the string is returned.
size Long integer. The size of string in bytes. This parameter works in a similar way to BWIGetString and your application must check for truncation and reset the size parameter between calls.
This returns the total number of bytes needed to store the output string including a null terminator.