Descent Developer Network Descent 1/2 HAMSpecs example code
Little example program how to read from HAM/V-HAM/HXM files.