
147
APPENDIX C: HDX2000L Library
Appendix C. HDX2000L LibraryThe HDX2000L library enables a programmer to create an application that
controls remote Pro Switching System units with minimal effort. It provides basic
functions and alarming such as switching to a specific port or monitoring a
particular signal.
The library controls units connected to an Ethernet 10BASE-T network via
SNMP messages and sits on top of the Windows WinSNMP interface provided with
the library.
Library name: HDX2000L.LIB
Header file: HDX2000L.H
C.1 Functions List
All library functions (except Hdx2000Init) return 0 if successful and have at least
the hSession session parameter.
HGLOBAL Hdx2000Init(HINSTANCE hInst, HWND hWnd, UINT uTrapMsg,
long *plErr, long *plVersion);
Initializes the library (mandatory first call to the library). If successful, returns an
hSession handler to be used for all subsequent calls to the library. Otherwise
returns a NULL value and an error code into plErr.
hInst Handler of the instance of the application
hWnd Recipient of the uTrapMsg message
uTrapMsg Windows message value to be sent to the application
plErr Pointer to error code storage
plVersion Pointer to library version storage. High word is the
major version number. Low word is the minor
version number.