DevHlp VMUnLock: Difference between revisions
Appearance
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..." |
m Martini moved page DevHelp VMUnLock to DevHlp VMUnLock |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This service unlocks a previously locked memory range. | {{DISPLAYTITLE:DevHlp_VMUnLock}} | ||
This service unlocks a previously locked memory range. | |||
==Syntax== | ==Syntax== | ||
Line 14: | 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=== | ||
MOV ESI,OFFSET LockHandle ; Flat pointer to the Lock handle returned from VMLock | MOV ESI,OFFSET LockHandle ; Flat pointer to the Lock handle returned from VMLock | ||
==Return Code== | ==Return Code== | ||
===C=== | ===C=== | ||
Success Indicator: Clear if successful. | Success Indicator: Clear if successful. | ||
Line 50: | Line 50: | ||
USHORT APIENTRY DevHelp_VMUnLock( LIN pLockHandle) | USHORT APIENTRY DevHelp_VMUnLock( LIN pLockHandle) | ||
</PRE> | </PRE> | ||
[[Category:DevHlps]] | [[Category:DevHlps]] |
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)