OFSTRUCT

typedef struct _OFSTRUCT { /* of */

BYTE cBytes;

BYTE fFixedDisk;

WORD nErrCode;

WORD Reserved1;

WORD Reserved2;

BYTE szPathName[OFS_MAXPATHNAME];

} OFSTRUCT;

The OFSTRUCT structure contains file information about a file that the OpenFile function opened or attempted to open.

Members

cBytes

Specifies the length (in bytes) of the OFSTRUCT structure.

fFixedDisk

Specifies whether the file is on a fixed disk. The fFixedDisk member is nonzero if the file is on a fixed disk.

nErrCode

Specifies the MS-DOS error code if the OpenFile function returns -1 (that is, OpenFile failed).

Reserved1

Reserved member.

Reserved2

Reserved member.

szPathName[OFS_MAXPATHNAME]

Specifies the path and filename of the file. This string consists of characters from the OEM character set.

See Also

OpenFile