| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | HPFS detect in Turbo Pascal? |
-=> Quoting Tosh Maddox to All <=-
TM> Does anyone have a snippet of code to detect a HPFS drive in OS/2
TM> using either Turbo Pascal, BPOS2v_2 (c't), or VP, could you please
TM> post a small sample?
For VP Based on original "C" code by Peter Fitzsimmons. Peter and Mike
will both warn that this will not work on a NETWORKED CD-ROM.
FUNCTION HPFS (drv:char):boolean;
VAR
rc,len : longint;
dev : pchar;
PBTR : PFsqBuffer2;
BUFF : ARRAY[1..2048] OF CHAR;
p, DNAME, DTYPE, DDATA : STRING;
BEGIN
HPFS := FALSE;
PBTR := {at}BUFF[1];
P := drv+':'+#0;
dev := {at}p[1];
len := 2048;
rc:=DosQueryFSAttach(dev, 0, FSAIL_QUERYNAME, Pbtr^, len);
if rc 0 then exit;
DNAME[0] := chr(lo(pBtr^.CBNAME));
DTYPE[0] := chr(lo(pBtr^.CBFSDNAME));
DDATA[0] := chr(lo(pBtr^.CBFSADATA));
move(buff[10+pBtr^.CBNAME],dtype[1],pBtr^.CBfsdNAME);
HPFS := dtype='HPFS';
end;
... Ask your Fido HUB for THDPRO support. NOW!!!
~~~ TGWave v1.02 Beta-03+
--- GEcho 1.11+
* Origin: Forbidden Knights Systems * (905)820-7273 * Dual * (1:259/423)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 259/423 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.