DevHelp VMFree

This service frees memory allocated with VMAlloc or a mapping created by VMProcessToGlobal or VMGlobalToProcess.

C
USHORT APIENTRY DevHelp_VMFree( LIN LinearAddr)

Assembler
 MOV  EAX,Linear_Address   ; Linear address of the region to be freed MOV  DL,DevHlp_VMFree

CALL [Device_Help] 

C

 * LinearAddr (LIN) : Linear address of the region to be freed.

Assembler
MOV  EAX,Linear_Address   ; Linear address of the region to be freed

C
Success Indicator: 0 if memory freed.

Possible errors: ERROR_ACCESS_DENIED     (5) ERROR_INVALID_PARAMETER (87)

Assembler
 'C' Clear if memory freed.

'C' Set if error. EAX = Error code. Possible errors: ERROR_ACCESS_DENIED     (5) ERROR_INVALID_PARAMETER (87) 

Remarks
All memory or mapping allocated by the physical device driver must be released before device driver termination.

C

 * 1) include "dhcalls.h"

USHORT APIENTRY DevHelp_VMFree( LIN LinearAddr) 