home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7298 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.8 KB  |  59 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: 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
  3. From: gruen@ipc1.rrzn.uni-hannover.de (Lutz Grueneberg)
  4. Subject: Problem with DosQueryFSInfo 
  5. Message-ID: <1993Jan4.103451.579@newsserver.rrzn.uni-hannover.de>
  6. Sender: news@newsserver.rrzn.uni-hannover.de (News Service)
  7. Reply-To: gruen@ipc1.rrzn.uni-hannover.de
  8. Organization: University of Hannover
  9. Date: Mon, 4 Jan 1993 10:34:51 GMT
  10. Lines: 47
  11.  
  12. Hi,
  13.  
  14. I try to use the DosQueryFSInfo call to read
  15. the media id of a floppy disk. The call should
  16. return this (unique) id together with some
  17. allocation information of the disk in the
  18. FSALLOCATE struct. The online manual tells me,
  19. that the sequence
  20.  
  21.   FSALLOCATE fsa;
  22.  
  23.   DosQueryFSInfo( 1,             // drive A:
  24.                   1,             // retrieve allocation info
  25.                   &fsa,          // address of retrieval buffer
  26.               sizeof( fsa)); // size of the buffer
  27.  
  28. should retrieve the information and the first 4 byte
  29. in the structure should contain the media ID.
  30.  
  31. The call retrieves all other allocation inforamtion of the disk 
  32. correct, only the media ID is always zero (which should only happen,
  33. if format does not write one, as the mtools of my UNIX station do).
  34.  
  35. I've compiled the C++ code with emx-0.8d and use the header files
  36. from the Toolkit for OS/2 2.0.
  37.  
  38. Is it my fault? Are there problems with emx?
  39. Is there a bug in the system call? 
  40.  
  41. Any suggestions are welcome.
  42.  
  43. Thanks,
  44.  
  45. Lutz 
  46.  
  47. -- 
  48. // Lutz Gr"uneberg
  49. // Lehrgebiet Rechnernetze und Verteilte Systeme
  50. // Universit"at Hannover
  51. // Schlosswender Str. 5
  52. // D-3000 Hannover 1, Germany
  53. //
  54. // Email: Grueneberg@rrzn.uni-hannover.dbp.de
  55. //
  56. //                ... have a  n.i.c.e. day
  57.  
  58.  
  59.