[fpc-pascal]cluster size info for win9x/go32

Lee, John LeeJ at logica.com
Mon Oct 2 15:20:19 CEST 2000

The current fat32 dos routine(from Marco) uses the go32 unit to access dos
memory...so can't see how to access the info in win32 without using a win32
specific algorithm. So any idea what the (simplest) single go32/w32 cluster
size routine would look like...? TIA for any help. PS at the moment the
simplest routine (it's about 7 lines of 100% standard fpc) I have which
works for dos/win9x dos and win32 and linux too, is to write a 5 byte temp
file & check the disk size change- crude but effective! TIA for something

-----Original Message-----
From: Kuba Ober [mailto:winnie at hoth.amu.edu.pl]
Sent: Friday, September 29, 2000 08:58
To: fpc-pascal at deadlock.et.tudelft.nl
Subject: RE: [fpc-pascal]cluster size info for win9x/go32

>You simply need two completely different procedures to do this under Dos
>and Win32. Under Win32, you don't communicate anymore with the OS using
>interrupts (so calling int 21h will probably just crash a win32 program).
Wrong ;-). There are some INT21 procedures which are accessible both in 
real and protected mode. FAT32 functions are example of these.

fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org

More information about the fpc-pascal mailing list