SA_Config
The SA_Config function allows an application to change and set keywords settings that control the operations of the SA_DLL32 dll. This means that a Sunaccess program can get or set the settings for runtime keywords without using keywords in the 'sunacces.ini' control file.
int SA_Config ( u32 KeyValue, u32 ConfigValue, u8 *Buffer, u32 BuffLen );
Note the following:
The function return integer value may indicate an error or success of the function. In some cases, the return value indicates the number of characters returned to the calling logic in the Buffer parameter.
|
Value |
Meaning |
|
0 |
success |
|
+nn |
success and value depends on KeyValue. |
|
-nn |
error as described in Sunaccess Error keywords. |
The KeyValue control values can be specified with one of the following values:
|
Control |
Value |
|
Control |
Value |
|
GET_PLB_CHECKFILE2GB |
0 |
|
SET_PLBWIN_W33RETRY |
19 |
|
SET_PLB_CHECKFILE2GB |
1 |
|
GET_PLBWIN_XPIO |
20 |
|
GET_PLB_CHKDRN |
2 |
|
SET_PLBWIN_XPIO |
21 |
|
SET_PLB_CHKDRN |
3 |
|
GET_PLB_OPENUSEIP |
22 |
|
GET_PLB_COPYFILEBUFFSZ |
4 |
|
SET_PLB_OPENUSEIP |
23 |
|
SET_PLB_COPYFILEBUFFSZ |
5 |
|
GET_PLB_PREPUSEIP |
24 |
|
GET_PLB_DPTFILENAME |
6 |
|
SET_PLB_PREPUSEIP |
25 |
|
SET_PLB_DPTFILENAME |
7 |
|
GET_PLB_DMALTIP |
26 |
|
GET_PLB_EOR |
8 |
|
SET_PLB_DMALTIP |
27 |
|
SET_PLB_EOR |
9 |
|
GET_PLB_PATH |
28 |
|
GET_PLB_FNC |
10 |
|
SET_PLB_PATH |
29 |
|
SET_PLB_FNC |
11 |
|
GET_PLB_AAMUPPER |
30 |
|
GET_PLB_LOCKIO |
12 |
|
SET_PLB_AAMUPPER |
31 |
|
SET_PLB_LOCKIO |
13 |
|
GET_PLB_PREP87 |
32 |
|
GET_PLB_NDUP |
14 |
|
SET_PLB_PREP87 |
33 |
|
SET_PLB_NDUP |
15 |
|
GET_PLB_RDCLR |
34 |
|
GET_PLB_OPENABS |
16 |
|
SET_PLB_RDCLR |
35 |
|
SET_PLB_OPENABS |
17 |
|
GET_SA_PRE87B |
101 |
|
GET_PLBWIN_W33RETRY |
18 |
|
SET_SA_PRE87B |
102 |
The following KeyValue control values use the function parameters as described below. In each of the tables, the following table values are defined as:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_CHECKFILE2GB |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_CHKDRN |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_DPTFILENAME |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_FNC |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_LOCKIO |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_NDUP |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_OPENABS |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLBWIN_W33RETRY |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLBWIN_XPIO |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_PREP87 |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_PLB_RDCLR |
0/1/-nn |
Req |
NA |
NA |
NA |
|
GET_SA_PRE87B |
0/1/-nn |
Req |
NA |
NA |
NA |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_CHECKFILE2GB |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_CHKDRN |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_DPTFILENAME |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_FNC |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_LOCKIO |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_NDUP |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_OPENABS |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLBWIN_W33RETRY |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLBWIN_XPIO |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_PREP87 |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_PLB_RDCLR |
0/-nn |
Req |
0/1 |
NA |
NA |
|
SET_SA_PRE87B |
0/-nn |
Req |
0/1 |
NA |
NA |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_COPYFILEBUFFSZ |
nn/-nn |
Req |
NA |
NA |
NA |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_COPYFILEBUFFSZ |
0/-nn |
Req |
n>1024 |
NA |
NA |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_EOR |
eorId/-nn |
Req |
NA |
NA |
NA |
Where:
|
EOR Type |
Value |
|
CFG_EOR_CR |
1 |
|
CFG_EOR_CR_NOAUTO |
2 |
|
CFG_EOR_LF |
3 |
|
CFG_EOR_LF_NOAUTO |
4 |
|
CFG_EOR_CRLF |
5 |
|
CFG_EOR_CRLF_NOAUTO |
6 |
|
CFG_EOR_LFCR |
7 |
|
CFG_EOR_LFCR_NOAUTO |
8 |
See the description of PLB_EOR for more details.
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_EOR |
0/-nn |
Req |
eorId |
NA |
NA |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_OPENUSEIP |
nn/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_OPENUSEIP |
0/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_PREPUSEIP |
nn/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_PREPUSEIP |
0/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_DMALTIP |
nn/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_DMALTIP |
0/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_PATH |
nn/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_PATH |
0/-nn |
Req |
NA |
bufPtr |
maxSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
GET_PLB_AAMUPPER |
0/256/-nn |
Req |
NA |
bufPtr |
bufSize |
Where:
|
Control |
Return |
Key Value |
Config Value |
Buffer |
BuffLen |
|
SET_PLB_AAMUPPER |
0/-nn |
Req |
NA |
bufPtr |
bufSize |
Where:
The following error values have been added to support the SA_Config function.
|
Value |
Meaning |
|
-102 |
Invalid SET_PLB_EOR ConfigValue |
|
-103 |
Invalid SA_CONFIG KeyValue |
|
-104 |
Invalid BufLen for SA_CONFIG |
|
-105 |
Unable to allocate memory for SA_CONFIG |
|
-106 |
Error setting SET_OPENUSEIP, SET_PREPUSEIP, or SET_DMALTIP |
|
-107 |
Invalid ConfigValue for SET_PLB_COPYFILEBUFFSZ |
![]() |