OFSTRUCT

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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.

See Also

File I/O Overview, File Structures, OpenFile