MFS OPEN: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:MFS_OPEN}} Open the specified file. ==Syntax== int far pascal MFS_OPEN(pszName, pulSize) ==Parameters== ; pszName: is a pointer to the ASCIIZ name of the fi..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:MFS_OPEN}} | {{DISPLAYTITLE:MFS_OPEN}} | ||
Open the specified file. | Open the specified file. | ||
Line 7: | Line 6: | ||
==Parameters== | ==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. | ;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. | ;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== | ==Returns== | ||
If no error is detected, a zero error code is returned. If an error is detected, a non-zero error code is returned. | If no error is detected, a zero error code is returned. If an error is detected, a non-zero error code is returned. | ||
==Sample== | ==Sample== | ||
Line 20: | Line 19: | ||
==Remarks== | ==Remarks== | ||
Only one file at a time will be opened by this call. The drive will always be the boot drive. | 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. | ||
Revision as of 20:47, 21 May 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.