Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

16.3.1 Installation/Operation Information Acquisition API [Windows]

This section explains the installation/operation information acquisition API (Mp_StatusMJES).

Synopsis

#include "f3cuapi.h"
long Mp_StatusMJES()

Description

This API obtains the version/level and operation status of Job Execution Control.

Return Values

Return Value

Meaning

Action

0

Job Execution Control is not running.

-

1 or greater

Job Execution Control is running.
The precise return value varies depending on the product version/level.
- For V13.8.0:
140*65536+40=(9175080)10=(8C0028)16
- For V13.3.0/V13.3.1:
130*65536+40=(8519720)10=(820028)16
In the case of Systemwalker Operation Manager V13.2.0 or earlier, the first 2 bytes indicate the version, and the last 2 bytes indicate the level.

In the case of Systemwalker Operation Manager V13.2.0, the version is 130 (the integer preceding the first period x 10) and the level is 30 (the integer preceding the second period x 10 + 10 + the integer following the second period).
- For V13.2.0:

130*65536+30=(8519710)10=(82001E)16

-

-1

A system error occurred.

Collect "Job Execution Control" information with the maintenance information collection tool and contact a Fujitsu SE.

Note that in the event of a system error, GetLastError()can be used to obtain detailed error codes.

Program Example

Below is an example program of the installation/operation information acquisition API:

#include <windows.h>
#include <stdio.h>
#include "f3cuapi.h"

int main (int argc, char **argv)
{
        long rtn;

        rtn = Mp_StatusMJES ();
        switch (rtn) {
        case 0:
                printf ("Systemwalker MpMjes service is not running.\n");
                return (1);
        case MJSESYSER:
                printf ("GetLastError() is %d\n", GetLastError());
                printf ("System error occurred.\n");
                return (1);
        }
        printf ("Version : %d\n", rtn / 65536);
        printf ("Level   : %d\n", rtn % 65536);
        return (0);
}