VMFileHandle FileFromTransferBlockID(id); TransferBlockID id;
This macro extracts the file handle from the given
TransferBlockID
value.
typedef ByteEnum FilePosMode; #define FILE_POS_START 0 #define FILE_POS_RELATIVE 1 #define FILE_POS_END 2
typedef WordFlags FileTime; #define FT_HOUR 0xf800 #define FT_MINUTE 0x07e0 #define FT_2SECOND 0x001f #define FT_HOUR_OFFSET 11 #define FT_MINUTE_OFFSET 5 #define FT_2SECOND_OFFSET 0
A file's time stamp is stored in a 16-bit bitfield. This field contains entries for the hour, minute, and second.
Each field is identified by a mask and an offset. To access a field, simply clear all bits except those in the mask, then shift the bits to the right by the number of the offset. FileTime
contains the
following fields, identified by their masks:
FT_HOUR_OFFSET
bits.FT_MINUTE_OFFSET
bits.FT_2SECOND_OFFSET
bits.Include: file.h
See Also: FileDate
typedef struct { word FNH_count; /* The number of matching notes we've found */ } FindNoteHeader;
typedef struct { word F_mantissa_wd0; word F_mantissa_wd1; word F_mantissa_wd2; word F_mantissa_wd3; FloatExponent F_exponent; } FloatNum;
typedef ByteFlags FontAttrs; #define FA_FIXED_WIDTH 0x40 #define FA_ORIENT 0x20 #define FA_OUTLINE 0x10 #define FA_FAMILY 0x0f #define FA_FAMILY_OFFSET 0
Include: font.h
typedef ByteFlags FontEnumFlags; #define FEF_ALPHABETIZE 0x80 /* Alphabetize returned list of fonts */ #define FEF_FIXED_WIDTH 0x20 /* Return only fixed-width fonts */ #define FEF_FAMILY 0x10 #define FEF_STRING 0x08 #define FEF_DOWNCASE 0x04 /* Returned font names will be lowercase */ #define FEF_BITMAPS 0x02 /* Interested in bitmap fonts */ #define FEF_OUTLINES 0x01 /* Interested in outline fonts */
Include: font.h
typedef struct { FontIDs FES_ID; char FES_name[FID_NAME_LEN]; } FontEnumStruct;
Include: font.h