Article View: comp.os.os2.programmer
Article #3249Problem with DosQueryFSInfo
From: Lutz Grueneberg
Date: Mon, 04 Jan 1993 10:34
Date: Mon, 04 Jan 1993 10:34
45 lines
1855 bytes
1855 bytes
Hi,
I try to use the DosQueryFSInfo call to read
the media id of a floppy disk. The call should
return this (unique) id together with some
allocation information of the disk in the
FSALLOCATE struct. The online manual tells me,
that the sequence
FSALLOCATE fsa;
DosQueryFSInfo( 1, // drive A:
1, // retrieve allocation info
&fsa, // address of retrieval buffer
sizeof( fsa)); // size of the buffer
should retrieve the information and the first 4 byte
in the structure should contain the media ID.
The call retrieves all other allocation inforamtion of the disk
correct, only the media ID is always zero (which should only happen,
if format does not write one, as the mtools of my UNIX station do).
I've compiled the C++ code with emx-0.8d and use the header files
from the Toolkit for OS/2 2.0.
Is it my fault? Are there problems with emx?
Is there a bug in the system call?
Any suggestions are welcome.
Thanks,
Lutz
--
// Lutz Gr"uneberg
// Lehrgebiet Rechnernetze und Verteilte Systeme
// Universit"at Hannover
// Schlosswender Str. 5
// D-3000 Hannover 1, Germany
//
// Email: Grueneberg@rrzn.uni-hannover.dbp.de
//
// ... have a n.i.c.e. day
Technical Details
Message-ID:
<1993Jan4.103451.579@newsserver.rrzn.uni-hannover.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!fauern!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!ipc1.rrzn.uni-hannover.de!gruenShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!fauern!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!ipc1.rrzn.uni-hannover.de!gruen From: gruen@ipc1.rrzn.uni-hannover.de (Lutz Grueneberg) Subject: Problem with DosQueryFSInfo Message-ID: <1993Jan4.103451.579@newsserver.rrzn.uni-hannover.de> Sender: news@newsserver.rrzn.uni-hannover.de (News Service) Reply-To: gruen@ipc1.rrzn.uni-hannover.de Organization: University of Hannover Date: Mon, 4 Jan 1993 10:34:51 GMT Lines: 47