Jump to content

MFS_OPEN

From EDM2
Revision as of 20:47, 21 May 2019 by Ak120 (talk | contribs)

Open the specified file.

Syntax

int far pascal MFS_OPEN(pszName, pulSize)

Parameters

pszName
is a pointer to the ASCIIZ name of the file to be opened. It may include a path but will not include a drive.
pulSize
is a pointer to a double word which is filled in by the mini-FSD with the size of the file in bytes.

Returns

If no error is detected, a zero error code is returned. If an error is detected, a non-zero error code is returned.

Sample

char far * pszName;
unsigned long far * pulSize;

int far pascal MFS_OPEN(pszName, pulSize)

Remarks

Only one file at a time will be opened by this call. The drive will always be the boot drive. The current file position is set to the beginning of the file.