Maurice Lombardi wrote:
program test; function UseLFN(path:CString): byte; AsmName '_use_lfn'; begin Writeln(UseLFN('C:')); end.
This is a very, very bad way of detecting Windoze because it assumes LFN = Windoze. Ever thought that someone could implement a DOS LFN API on a non-Windoze platform? A DOS device driver (there is one in progress) or a new DOS could provide this , as could many DOS emulators of already-LFN-capable operating systems, such as Linux. The DOS 7.x LFN API does not restrict its use to VFAT drives - even case-sensitive file systems (what a bloody stupid idea they were/are) are catered for in DOS 7.x LFN API.
There will be problems fot NT however.
Not just NT (NT/2000 does not provide the DOS LFN API) my friend.
Hope this helps
No. :-)
Jay
Jason Burgon - Author of "Graphic Vision" GUI for DOS/DPMI === Free LFN capable Dos/WinDos replacement and === === New Graphic Vision version 2.12 available from: === http://www.jayman.demon.co.uk