sf_read_sysdata()

Purpose

Reads system data file (server's view). You must: #include "SYSDATA.H"

Old name

#define read_srv_sysdata sf_read_sysdata

Syntax (CCOWN)

void sf_read_sysdata(void);

Syntax (DP4DBAPI)

BOOLEAN dp4_sf_read_sysdata(CONN * conn,struct SYSDATA * sysdata,size_t size_sysdata);

Description

The sf_read_sysdata() function reads the contents of the server's DP4 licence file into the global variable srv_sysdata. The dp4_sf_read_sysdata() reads the same data into the specified buffer. You must pass the size of the buffer to be used for reading the file. This must be at least 512 bytes (sizeof(struct SYSDATA) is correct)

The licence file data reflects the server's view of the system, which may be different from the local DP4 licence file if the program is running on a network.

The global variable srv_sysdata is declared in the header file SYSDATA.H as:

extern struct SYSDATA sysdata

See also

trm_read_user(), tf_read_sysdata()