🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3659

Current call format for DosDevConfig

#3659
From: Mike Thompson
Date: Wed, 27 Jan 1993 20:22
30 lines
1401 bytes
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!
Technical Details
Message-ID: <1993Jan27.202219.9532@msc.cornell.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!caen!batcomputer!lynx@msc.cornell.edu!tommy

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!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