Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Set_Delete_On_Exit_File
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vmm.inc
 
mov     esi, Filename       ; points to filename to add
VMMcall Set_Delete_On_Exit_File
 
jc      not_added           ; carry 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 pagefile device; other
virtual devices must not use this service.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
Filename   Specifies a null-terminated string identifying the file to
           delete. The string must specify a drive letter and full path.
 
Return Value
 
The carry flag is clear if the service adds the file to the list. Otherwise,
the carry flag is set.
 
Uses
 
All registers except EBX, EBP, and the segment registers.
 
                                      ♦