ASAP 2.7 Extension Manual
Implementing the ASAP Extension in an Application
HP NonStop ASAP Extension Manual—425265-004
4-21
ASAP_CONTROL_ Procedure
flags
INT
is a control word indicating:
Syntax for C Programmers
#include ASAPXH(ASAP_CONTROL_)
/*#pragma asap_control_ */
_tal _extensible short asap_control_ (
long , /* IN REQUIRED */
/* Memory segment offset for this domain */
short _far *, /* OUT OPTIONAL */
/* Detailed error */
short /* IN REQUIRED */
/* Flags word, flags.<14> = rank enable */
/* flags.<15> = rank disable */
);
Example Control Procedure Call
int(32) seg^offset;
int error;
string domain^name[0:63]
.
.
.
if (error:= ASAP_REGISTER_(…
.
.
.
if (error := ASAP_CONTROL_( seg^offset
,error^detail
,%1)) disable ranking
.
.
.
if (error := ASAP_CONTROL_( seg^offset
,error^detail
,%2)) enable ranking
flags.<13> Reserved for future use.
flags.<14> Enable ranking for this domain.
flags.<15> Disable ranking for this domain.
Note. If bit 14 is on, ASAPX ignores bit 15.