include	clib.inc

PPROC	wvolinfo, path:DPTR, buffer:DPTR
	push	ds
	push	di
	stc
	mov	ax,71A0h
	mov	cx,32
	MLES	di,buffer	; 32 byte 'FAT32','CDFS',...
	MLDS	dx,path		; 'C:\*.*'
	int	21h
	jc	wvolinfo_end
	xor     ax,ax		; return 0
    wvolinfo_end:
	pop	di
	pop	ds
	ret
PEND	wvolinfo

	END
