List_Get_Next

include vmm.inc

mov     esi, List       ; list handle
mov     eax, Node       ; address of node
VMMCall List_Get_Next

jz      empty_list      ; zero set if no more nodes in list
mov     [Node], eax     ; address of next node
 

Returns the next node in a list after the specified node. This service is typically used in conjunction with the List_Get_First service to scan an entire list. Uses EAX, Flags.

List
Handle of the list. The handle must have been previously created using the List_Create service.
Node
Address of a node in the list. The address must have been previously retrieved using the List_Get_First or List_Get_Next service.

See Also

List_Create, List_Get_First