154
PRO SWITCHING SYSTEM
{
/* Error */
}
return 0;
.
.
.
}
break;
.
.
.
case WM_DESTROY:
/* Exit the Hadax 2000 remote
control library */
Hdx2000Exit(ghSession);
PostQuitMessage(0);
return 0;
}
return DefWindowProc(hWnd, uMsg, wParam,
lParam);
}
C.4 Debug
To debug the application, you can generate a library log file.
To do so, create the [HDX2000L] section in the WIN.INI file and then create the
Debug=n entry where n is:
0 no debug
1 logs application calls to the library as well as
trap messages issued by the the library
2 logs SNMP events
3 same as 1+ 2
The log file HDX2000L.LOG is created under the Windows directory.