Jump to content

MFS OPEN: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
No edit summary
 
Line 20: Line 20:
==Remarks==
==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.
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.
[[Category:IFS Interfaces]]

Latest revision as of 21:28, 20 November 2019

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.