6. LIBRARY FUNCTIONS
6-13
(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.
Содержание HF-W6500 45/40
Страница 1: ...WIN 63 0088 02 ...
Страница 2: ...WIN 63 0088 02 ...
Страница 21: ...This page is intentionally left blank ...
Страница 35: ...This page is intentionally left blank ...
Страница 79: ...4 CHECKING THE HARDWARE STATUS 4 26 5 In the SNMP Service Properties window click Apply ...
Страница 91: ...This page is intentionally left blank ...
Страница 105: ...This page is intentionally left blank ...
Страница 137: ...This page is intentionally left blank ...
Страница 147: ...This page is intentionally left blank ...
Страница 163: ...This page is intentionally left blank ...