6. LIBRARY FUNCTIONS
6-12
(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
Explanation of the action
GENDI_PORT (0x00)
Gets the status of the general purpose external contact
(GENDI).
GENDI0_PORT (0x01)
Gets the status of the general purpose external contact
(GENDI0).
GENDI1_PORT (0x02)
Gets the status of the general purpose external contact
(GENDI1).
GENDI2_PORT (0x03)
Gets the status of the general purpose external contact
(GENDI2).
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, clear the
“
Automatically shutdown if remote shutdown is requested
” check box under
Shutdown
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.
Summary of Contents for HF-W7500 40
Page 1: ...WIN 63 0090 03 ...
Page 2: ...WIN 63 0090 03 ...
Page 23: ...This page is intentionally left blank ...
Page 105: ...This page is intentionally left blank ...