About DOS function 714Eh (Find First File for LFN)


2006-03-17 07:55:17 PM
off-topic10
Hi
I tested DOS function 714Eh (Find File for LFN) on XP machine and could not
get volume label (though other LFNames I did get using other attributes for
searching).
Here is the code
mov ch,8 ; match attribute, 8 is ATTR_VOLUMEID
mov cl,8 ; search attribute
mov di,seg Win32FindDataStructure
mov es,di
mov di,offset Win32FindDataStructure
mov dx,offset cFileName ; cFileName db 'C:\*.*',0
mov si,1
mov ax,0714Eh
int 21h
; and so on
I did not get carry flag set (i.e. there was not any error) but AX contained
0 instead of search handle as documentation says.
What is the matter?
Vladimir Grigoriev