home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 8041 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.3 KB  |  41 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!caen!batcomputer!lynx@msc.cornell.edu!tommy
  3. From: tommy@msc.cornell.edu (Mike Thompson)
  4. Subject: Current call format for DosDevConfig
  5. Message-ID: <1993Jan27.202219.9532@msc.cornell.edu>
  6. Sender: news@msc.cornell.edu
  7. Organization: Cornell-Materials-Science-Center
  8. Date: Wed, 27 Jan 1993 20:22:19 GMT
  9. Lines: 30
  10.  
  11. The following code fragment uses DosDevConfig to get computer model
  12. information.  This is basically from the toolkit example
  13.  
  14.     BYTE model,submodel;
  15.  
  16.     DosDevConfig(&model, DEVINFO_MODEL);
  17.     DosDevConfig(&submodel, DEVINFO_SUBMODEL);
  18.  
  19. Under the 2.1b beta, it works fine.  However, under 2.0 w/ SP, it
  20. crashes with a memory fault.  Changing the BYTE declarations to
  21. ULONG solves the problem.
  22.  
  23. What is the correct length for DEVINFO_MODEL and DEVINFO_SUBMODEL
  24. calls?  Is the 2.1b BYTE length correct, or should I be coding for
  25. ULONG in both cases.
  26.  
  27. Anyone know?  What about other DEVINFO parameters?
  28.  
  29. Thanks.
  30.  
  31. ---------------------
  32. Michael O. Thompson            tommy@msc.cornell.edu
  33. Cornell University             (607) 255-4714
  34.  
  35. OS/2:  For the few, the proud, the devoted!
  36. -- 
  37. Michael O. Thompson            tommy@msc.cornell.edu
  38. Cornell University             (607) 255-4714
  39.  
  40. OS/2:  For the few, the proud, the devoted!
  41.