DevHelp_VMUnLock

From EDM2
Jump to: navigation, search

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)