List_Remove

include vmm.inc

mov esi, List ; list handle

mov eax, Node ; address of node to remove

VMMcall List_Remove

jc not_removed ; carry flag set if error


The List_Remove service removes the specified node from the list.

Parameters

List

Specifies the handle identifying a list. The handle must have been previously created using the List_Create service.

Node

Specifies the address of the node to remove. The node must have been previously retrieved using the List_Get_First or List_Get_Next service.

Return Value

The carry flag is clear if the service is successful. Otherwise, the carry flag is set to indicate an error.

Comments

This service does not deallocate the node. It is up to the virtual device to free the node, or attach it to another list.

Uses

EAX, Flags

See Also

List_Create, List_Remove_First