_Free_GDT_Selector

include vmm.inc

VMMcall _Free_GDT_Selector, <Selector, flags>

or eax, eax ; nonzero if freed, zero if error

jz not_freed


The _Free_GDT_Selector service frees a GDT selector previously allocated using the Allocate_GDT_Selector service.

Parameters

Selector

Specifies the selector to free. This parameter must have been previously created using the Allocate_GDT_Selector service.

flags

Specifies the operation flags. This parameter must be set to 0.

Return Value

The EAX register contains a nonzero value if the service is successful. Otherwise, EAX contains zero to indicate an error such as an invalid selector.

Comments

Certain system selectors cannot be freed since they are required for Windows operation. This service ignores the RPL bits of the selector.

Uses

EAX

See Also

_Allocate_GDT_Selector, _Free_LDT_Selector