Platform SDK: Win32 API

Interrupt 21h Function 440Dh Minor Code 6Eh

Retrieves information about the swap file.

mov ax, 440Dh           ; generic IOCTL
mov ch, 08h             ; device category (must be 08h)
mov cl, 6Eh             ; Find Swap File 
mov dx, seg PathBuf     ; see below
mov ds, dx
mov dx, offset PathBuf
int 21h

jc  error
mov [PagerType], ax            ; pager type
mov WORD PTR [FileSize], bx    ; swap file size in 4K pages
mov WORD PTR [FileSize+2], cx

Parameters

PathBuf
Pointer to the buffer that receives the path of the swap file. To determine the maximum allowed length of a path for the volume, call Get Volume Information (Interrupt 21h Function 71A0h).

Return Values

Clears the carry flag, copies the swap file path to the given buffer, and sets the following registers if successful.

Register Description
AX Pager type. It can be 1 for no pager, 2 for paging through MS-DOS, and 3 for paging through the protected-mode input and output (I/O) supervisor.
CX:BX Current size of the swap file in 4K pages.

Otherwise, this function sets the carry flag and sets the AX register to an error value.