if (fib = AllocDosObjectTags(DOS_FILEHANDLE, ADO_FH_Mode))
{if (Examine(, fib))
{fib_Size>;
}
FreeDosObject(DOS_FILEHANDLE, fib);
}
This is completely wrong.
You must alloc FileInfoBlock structure, not filehandle structure! In
addition your taglist is not terminated with TAG_DONE and ADO_FH_MODE
misses tag value.
Allocate DOS_FIB packet and supply an empty taglist (TAG_DONE only)..