_RINZSTAT

Prototypes

void _RINZSTAT(RINZ_TEMPL_T *Informations);

Description

Désactive un service.

Informations contient les informations sur le service.

Exemple

#include <stdio.h>
#include <stdlib.h>
#include <miptrnam.h>
#include <mih/rinzstat.h>
#include <mih/matactex.h>
#include <qleawi.h>
#include <pointer.h>

#define CO_Srvpgm 0x0203
#define CO_Procedure 0x1

_SYSPTR Programme;
int act_mark;
Qle_ABP_Info_t le_act_info;
int le_act_info_size;
int LE_RC;
int number;
int ident_type;
int export_type;
void (*Procedure)(void);
RINZ_TEMPL_T Informations;

...
Programme=rslvsp(CO_Srvpgm, (_OBJ_NAME)"essai", (_LIB_NAME)"tmp", _AUTH_ALL);
if (!Programme) act_mark=0;
le_act_info_size=sizeof(le_act_info);
memset(le_act_info_size, 0, le_act_info_size);
LE_RC=0;
QleActBndPgm(&Programme, &act_mark, &le_act_info, &le_act_info_size, (Qus_EC_t *)&LE_RC);
...
Procedure=NULL;
ident_type=0;
number=0;
export_type=0;
LE_RC=0;
QleGetExp(&act_mark, &ident_type, &number, "MaProcedure", &Procedure, &export_type, (Qus_EC_t *)&LE_RC);
if (export_type!=CO_Procedure) ...
(*Procedure)();
...
Informations.rinz_pgm=Programme;
Informations.rinz_agpmk=le_act_info.Act_Grp_Mark;
_RINZSTAT(&Informations);
...

Avertissement

Surtout ne plus utiliser les symboles lus dans la bibliothèque suite à l'appel de cette fonction.

Voir aussi

rslvsp pour invoquer un service. QleActBndPgm pour activer le service.QleGetExp pour rechercher un symbole.