DevHlp VMUnLock: Difference between revisions
Appearance
No edit summary |
m Martini moved page DevHelp VMUnLock to DevHlp VMUnLock |
(No difference)
|
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)