Platform SDK: Win32 API |
Retrieves the full path for the specified file or path.
mov ax, 7160h mov cl, 0 ; Get Full Path Name mov ch, SubstExpand ; see below mov si, seg SourcePath ; see below mov ds, si mov si, offset SourcePath mov di, seg DestPath ; see below mov es, di mov di, offset DestPath int 21h jc error
Clears the carry flag, modifies the AX register, and returns the full path in the given buffer if successful. Otherwise, the function sets the carry flag and sets the AX register to an error value.
When just a filename is specified, this function merges the name of the current drive and directory with the specified filename to determine the full path. Relative paths containing the characters "." and ".." in SourcePath are fully expanded. The function does no validation, so the specified filename or path does not need to exist.