OFSTRUCT

Open-File Structure

The OFSTRUCT structure contains file information which results from opening that file.

typedef struct tagOFSTRUCT {

BYTE cBytes;

BYTE fFixedDisk;

WORD nErrCode;

BYTE reserved[4];

BYTE szPathName[120];

} OFSTRUCT;

The OFSTRUCT structure has the following fields:

Field Description  
cBytes Specifies the length of the OFSTRUCT structure (in bytes).  
fFixedDisk Specifies whether the file is on a fixed disk. The fFixedDisk field is nonzero if the file is on a fixed disk.  
nErrCode Specifies the DOS error code if the OpenFile function returns –1 (that is, OpenFile failed).  
reserved[4] Reserved field. Four bytes reserved for future use.  
szPathName[120] Specifies 120 bytes that contain the pathname of the file. This string consists of characters from the OEM character set.