Platform SDK: Win32 API

Enable or Disable Close Command

Enables or disables the Close command in the system menu.

mov ah, 16h    ; Windows multiplex function 
mov al, 8Fh    ; VM Close 
mov dh, 0      ; Enable or Disable Close Command 
mov dl, Flags  ; see below 
int 2Fh 
or ax, ax 
jz success 

Parameters

Flags
Close flags. This parameter can be one of these values:
00h Disables the Close command.
01h Enables the Close command.

Return Values

Returns zero in the AX register if successful.