home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!caen!batcomputer!lynx@msc.cornell.edu!tommy
- From: tommy@msc.cornell.edu (Mike Thompson)
- Subject: Current call format for DosDevConfig
- Message-ID: <1993Jan27.202219.9532@msc.cornell.edu>
- Sender: news@msc.cornell.edu
- Organization: Cornell-Materials-Science-Center
- Date: Wed, 27 Jan 1993 20:22:19 GMT
- Lines: 30
-
- The following code fragment uses DosDevConfig to get computer model
- information. This is basically from the toolkit example
-
- BYTE model,submodel;
-
- DosDevConfig(&model, DEVINFO_MODEL);
- DosDevConfig(&submodel, DEVINFO_SUBMODEL);
-
- Under the 2.1b beta, it works fine. However, under 2.0 w/ SP, it
- crashes with a memory fault. Changing the BYTE declarations to
- ULONG solves the problem.
-
- What is the correct length for DEVINFO_MODEL and DEVINFO_SUBMODEL
- calls? Is the 2.1b BYTE length correct, or should I be coding for
- ULONG in both cases.
-
- Anyone know? What about other DEVINFO parameters?
-
- Thanks.
-
- ---------------------
- Michael O. Thompson tommy@msc.cornell.edu
- Cornell University (607) 255-4714
-
- OS/2: For the few, the proud, the devoted!
- --
- Michael O. Thompson tommy@msc.cornell.edu
- Cornell University (607) 255-4714
-
- OS/2: For the few, the proud, the devoted!
-