Platform SDK: Win32 API |
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
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.