Platform SDK: Win32 API |
Copies the path of the current directory for the given drive to the buffer. The copied path does not include the drive letter or the leading backslash.
mov ax, 7147h ; Get Current Directory mov dl, Drive ; see below mov si, seg Buffer ; see below mov ds, si mov si, offset Buffer int 21h jc error
Clears the carry flag and copies the path if successful. Otherwise, the function sets the carry flag and sets the AX register to an error value.