The OFSTRUCT structure contains information about a file that the OpenFile function opened or attempted to open.
typedef struct _OFSTRUCT { // of
BYTE cBytes;
BYTE fFixedDisk;
WORD nErrCode;
WORD Reserved1;
WORD Reserved2;
CHAR szPathName[OFS_MAXPATHNAME];
} OFSTRUCT;
Members
cBytes
Specifies the length, in bytes, of the structure.
fFixedDisk
Specifies whether the file is on a hard (fixed) disk. This member is nonzero if the file is on a hard disk.
nErrCode
Specifies the MS-DOS error code if the OpenFile function failed.
Reserved1
Reserved; do not use.
Reserved2
Reserved; do not use.
szPathName
Specifies the path and filename of the file. This string consists of characters from the Windows character set.
See Also