Jump to content

MFSH UNPHYSTOVIRT: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:MFSH_UNPHYSTOVIR}} Release the selector allocated previously by calling MFSH_PHYSTOVIRT. ==Syntax== int far pascal MFSH_UNPHYSTOVIRT(usSel)unsigned short usSel..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:MFSH_UNPHYSTOVIR}}
{{DISPLAYTITLE:MFSH_UNPHYSTOVIRT}}
Release the selector allocated previously by calling MFSH_PHYSTOVIRT.
Release the selector allocated previously by calling [[MFSH_PHYSTOVIRT]].
 
==Syntax==
==Syntax==
  int far pascal MFSH_UNPHYSTOVIRT(usSel)unsigned short usSel;
  int far pascal MFSH_UNPHYSTOVIRT(usSel)unsigned short usSel;


==Parameters==
==Parameters==
; usSel : contains the selector to released.
;usSel : contains the selector to released.


==Returns==
==Returns==
If no error is detected, a zero error code is returned. If an error is detected, the following error code is returned:
If no error is detected, a zero error code is returned. If an error is detected, the following error code is returned:
; ERROR_PROTECTION_VIOLATION: the supplied selector is invalid.
;ERROR_PROTECTION_VIOLATION: the supplied selector is invalid.


==Sample==
==Sample==
Line 15: Line 16:
   
   
  int far pascal MFSH_UNPHYSTOVIRT(usSel)
  int far pascal MFSH_UNPHYSTOVIRT(usSel)
==Remarks==
==Remarks==
This helper is for use by a mini-FSD with an imbedded device driver. It is the same as the standard device driver UNPHYSTOVIRT helper.
This helper is for use by a mini-FSD with an imbedded device driver. It is the same as the standard device driver UNPHYSTOVIRT helper.


A caller must issue a corresponding UNPHYSTOVIRT after calling PHYSTOVIRT, before returning to its caller or using any other helpers.  
A caller must issue a corresponding UNPHYSTOVIRT after calling PHYSTOVIRT, before returning to its caller or using any other helpers.


[[Category:IFS]]
[[Category:IFS Interfaces]]

Latest revision as of 05:45, 17 February 2020

Release the selector allocated previously by calling MFSH_PHYSTOVIRT.

Syntax

int far pascal MFSH_UNPHYSTOVIRT(usSel)unsigned short usSel;

Parameters

usSel
contains the selector to released.

Returns

If no error is detected, a zero error code is returned. If an error is detected, the following error code is returned:

ERROR_PROTECTION_VIOLATION
the supplied selector is invalid.

Sample

unsigned short usSel;

int far pascal MFSH_UNPHYSTOVIRT(usSel)

Remarks

This helper is for use by a mini-FSD with an imbedded device driver. It is the same as the standard device driver UNPHYSTOVIRT helper.

A caller must issue a corresponding UNPHYSTOVIRT after calling PHYSTOVIRT, before returning to its caller or using any other helpers.