Set_Delete_On_Exit_File

include vmm.inc

mov     esi, Filename       ; points to filename to add
VMMCall Set_Delete_On_Exit_File

jc      not_added           ; carry flag set on error
 

Adds the specified filename to the list of files to delete when Windows terminates. Uses All registers except EBX, EBP, and the segment registers.

This service is for the exclusive use of the virtual swap file device; other virtual devices must not use this service.

Filename
Address of a null-terminated string identifying the file to delete. The string must specify a drive letter and full path.