Table 6-6 List Of Actions Of The Getgendiex Function Specified By Dwport - Hitachi HF-W6500 45/40 Feature Manual

Hide thumbs Also See for HF-W6500 45/40:
Table of Contents

Advertisement

(2) Function interface (GetGendiEx)
<Name>
GetGendiEx - Status acquisition of the general purpose external contact inputs (GENDI,
GENDI0, GENDI1, and GENDI2)
<Syntax>
#include <w2kras.h>
DWORD GetGendiEx(DWORD dwPort);
<Description>
This function gets the status of the general purpose external contact inputs (GENDI,
GENDI0, GENDI1, and GENDI2) of the RAS external contacts interface.
Table 6-6 shows a list of actions that can be specified by dwPort.

Table 6-6 List of Actions of the GetGendiEx Function Specified by dwPort

dwPort
GENDI_PORT (0x00)
GENDI0_PORT (0x01)
GENDI1_PORT (0x02)
GENDI2_PORT (0x03)
If a value other than the above is specified, this function terminates with an error. If you call
the GetLastError Windows API function, an error code W2KRAS_INVALID_PARAMETER
is returned.
If you want to specify GENDI_PORT for dwPort and get the status of GENDI,
"Automatically shutdown if remote shutdown is requested" check box
setting in the RAS Setup window. If this check box is selected, this function terminates with
an error. If you call the GetLastError Windows API function, an error code
W2KRAS_RMTSTDN_ON is returned.
<Return values>
1: The external contact specified by dwPort is closed.
0: The external contact specified by dwPort is open.
0xffffffff: The function terminates with an error.
Explanation of the action
Gets the status of the general purpose external contact
(GENDI).
Gets the status of the general purpose external contact
(GENDI0).
Gets the status of the general purpose external contact
(GENDI1).
Gets the status of the general purpose external contact
(GENDI2).
6-13
6. LIBRARY FUNCTIONS
clear the
under Shutdown

Advertisement

Table of Contents
loading

Table of Contents