DevHlp VMUnLock: Difference between revisions
Appearance
mNo edit summary |
m Martini moved page DevHelp VMUnLock to DevHlp VMUnLock |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE: | {{DISPLAYTITLE:DevHlp_VMUnLock}} | ||
This service unlocks a previously locked memory range. | This service unlocks a previously locked memory range. | ||
Line 15: | Line 15: | ||
==Parameters== | ==Parameters== | ||
===C=== | ===C=== | ||
; pLockHandle (LIN) : Flat pointer to the lock handle returned from VMLock. | ; ''pLockHandle'' (LIN) - input : Flat pointer to the lock handle returned from VMLock. | ||
===Assembler=== | ===Assembler=== |
Latest revision as of 16:00, 24 May 2025
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) - input
- 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)