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 |
The Set_Delete_On_Exit_File service adds the specified filename to the list of files to delete when Windows terminates.
This service is for the exclusive use of the virtual swap file device; other virtual devices must not use this service.
Filename
Specifies a null-terminated string identifying the file to delete. The string must specify a drive letter and full path.
The carry flag is clear if the service adds the file to the list. Otherwise, the carry flag is set.
All registers except EBX, EBP, and the segment registers.