TMGetFamilySpec Code Example

long session_handle;
unsigned char state_buffer[15360];
short result;
Specification spec;

/* session_handle set from a call to TMExtendedStartSession */
...

/* set the unique registration number of the device to get information on using TMFirst,TMNext,TMRom... */

result = TMGetFamilySpec(session_handle,state_buffer,&spec);

if (result < 0)
{
/* FILE_OPERATIONS error */
...
}
else
{
/* success, info is in spec */
sprintf(buf,"Device %s, number of pages %d of length %d\n",
spec.description, spec.features[0], spec.features[1]);
...
}

/* close the session with a call to TMEndSession */
...