TMGetAdapterSpec Code Example
long session_handle;
unsigned char state_buffer[15360];
short result;
Specification spec;
/* session_handle set from a call to TMExtendedStartSession */
...
/* call TMSetup so the type of adapter confirmed */
result = TMGetAdapterSpec(session_handle, &spec);
if (result < 0)
{
/* TMEX HARDWARE SPECIFIC error */
...
}
else
{
/* success, info is in spec */
sprintf(buf,"Adapter %s can do overdrive:%d\n",
spec.description, spec.features[0]);
...
}
/* close the session with a call to TMEndSession */
...