Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
File Services
File Systems
File Management
 OFSTRUCT Structure
OFSTRUCT Structure

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

Syntax

C++
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 clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinBase.h (include Windows.h)

See Also

OpenFile

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker