
151
APPENDIX C: HDX2000L Library
01 for position A
02 for position B
03 for position C
04 for position D
rc Rear card code (2-digit hexadecimal value)
sp Line specific parameter
ss Status code (HDX2000L_STATUS_xxx)
00 OK
01 Absent
02 Failure
03 Inserted
04 Removed
05 Manual operation
06 Remote operation
vv.vv Rack firmware version number (for example, 05.12)
x.x.x.x IP address of the operator who requested a remote
switch
yy LED state (HDX2000L_LEDSTATE_xxx)
01 mark
02 space
04 active
C.3 Sample Code#include <windows.h>
#include <windowsx.h>
#include “hdx2000l.h”
#define WM_TRAP_2000 20000
/* Global library session handler */
HGLOBAL ghSession;
.
.
.
/* Windows entry point */
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
HWND hMain;
int nResult;