_Free_GDT_Selector

include vmm.inc

VMMCall _Free_GDT_Selector, <Selector, flags>

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

Frees a GDT selector previously allocated using the _Allocate_GDT_Selector service. Uses EAX, ECX, EDX, and Flags.

Selector
Selector to free. The selector must have been previously created using the _Allocate_GDT_Selector service.
flags
Operation flags. Must be 0.

Certain system selectors cannot be freed since they are required for Windows operation. (Remember, free only those selectors created by calling _Allocate_GDT_Selector.) This service ignores the RPL bits of the selector.

See Also

_Allocate_GDT_Selector, _Free_LDT_Selector