Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

OFSTRUCT structure

Contains information about a file that the OpenFile function opened or attempted to open.

Syntax


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

Members

cBytes

The size of the structure, in bytes.

fFixedDisk

If this member is nonzero, the file is on a hard (fixed) disk. Otherwise, it is not.

nErrCode

The MS-DOS error code if the OpenFile function failed.

Reserved1

Reserved; do not use.

Reserved2

Reserved; do not use.

szPathName

The path and file name of the file.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinBase.h (include Windows.h)

See also

OpenFile

 

 

Community Additions

ADD
Show:
© 2015 Microsoft