Platform SDK: Files and I/O

OFSTRUCT

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

typedef struct _OFSTRUCT { 
  BYTE cBytes; 
  BYTE fFixedDisk; 
  WORD nErrCode; 
  WORD Reserved1; 
  WORD Reserved2; 
  CHAR szPathName[OFS_MAXPATHNAME]; 
} OFSTRUCT, *POFSTRUCT; 

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 file name of the file.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winbase.h; include Windows.h.

See Also

File I/O Overview, File I/O Structures, OpenFile