MFSH SEGFREE: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:MFSH_SEGFREE}} Free a memory segment. ==Syntax== int far pascal MFSH_SEGFREE(usSel) ==Parameters== ; usSel : contains the selector of the segment to be freed..." |
m →Remarks |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:MFSH_SEGFREE}} | {{DISPLAYTITLE:MFSH_SEGFREE}} | ||
Free a memory segment. | Free a memory segment. | ||
==Syntax== | ==Syntax== | ||
int far pascal MFSH_SEGFREE(usSel) | int far pascal MFSH_SEGFREE(usSel) | ||
==Parameters== | ==Parameters== | ||
; usSel : contains the selector of the segment to be freed. | ;usSel : contains the selector of the segment to be freed. | ||
==Returns== | ==Returns== | ||
If no error is detected, a zero error error code is returned. If an error is detected, the following error code is returned: | If no error is detected, a zero error error code is returned. If an error is detected, the following error code is returned: | ||
; ERROR_PROTECTION_VIOLATION: the selector is invalid. | ;ERROR_PROTECTION_VIOLATION: the selector is invalid. | ||
==Sample== | ==Sample== | ||
Line 16: | Line 18: | ||
==Remarks== | ==Remarks== | ||
This function releases a segment previously allocated with MFSH_SEGALLOC, or loaded as part of the mini-FSD image. | This function releases a segment previously allocated with [[MFSH_SEGALLOC]], or loaded as part of the mini-FSD image. | ||
[[Category:IFS]] | [[Category:IFS Interfaces]] |
Latest revision as of 21:36, 20 November 2019
Free a memory segment.
Syntax
int far pascal MFSH_SEGFREE(usSel)
Parameters
- usSel
- contains the selector of the segment to be freed.
Returns
If no error is detected, a zero error error code is returned. If an error is detected, the following error code is returned:
- ERROR_PROTECTION_VIOLATION
- the selector is invalid.
Sample
unsigned short usSel; int far pascal MFSH_SEGFREE(usSel)
Remarks
This function releases a segment previously allocated with MFSH_SEGALLOC, or loaded as part of the mini-FSD image.