Jump to content

DevHlp VMUnLock

From EDM2
Revision as of 23:12, 29 July 2018 by Martini (talk | contribs) (Created page with "This service unlocks a previously locked memory range. ==Syntax== ===C=== USHORT APIENTRY DevHelp_VMUnLock( LIN pLockHandle) ===Assembler=== <PRE> MOV ESI,OFFSET LockHan...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This service unlocks a previously locked memory range.

Syntax

C

USHORT APIENTRY DevHelp_VMUnLock( LIN pLockHandle)

Assembler

MOV   ESI,OFFSET LockHandle  ; Flat pointer to the Lock handle returned from VMLock
MOV   DL,DevHlp_VMUnLock

CALL  [Device_Help]

Parameters

C

pLockHandle (LIN)
Flat pointer to the lock handle returned from VMLock.

Assembler

MOV   ESI,OFFSET LockHandle  ; Flat pointer to the Lock handle returned from VMLock

Return Code

C

Success Indicator: Clear if successful.

Possible errors:

              ERROR_INVALID_HANDLE      (6)
              ERROR_INVALID_PARAMETER   (87)
              ERROR_NOT_LOCKED          (158)

Assembler

   'C' Clear if pages unlocked.

   'C' Set if error.
       EAX = Error code.
            Possible errors:
               ERROR_INVALID_HANDLE     (6)
               ERROR_INVALID_PARAMETER  (87)
               ERROR_NOT_LOCKED         (158)

Remarks

A successful call to this function can modify the caller's lock handle.

Example Code

C

#include  "dhcalls.h"

USHORT APIENTRY DevHelp_VMUnLock( LIN pLockHandle)

Related Functions