TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Rinat Sadretdinow
from: Mike Bilow
date: 1995-03-31 19:46:04
subject: Writing VDD

Rinat Sadretdinow wrote in a message to All:

 RS> Can anyone suggest any documentation on writing VDD's (PDD's
 RS> dox will also welcome). I have no possibility to download
 RS> such stuff from USA nor Canada, just write the title and
 RS> I'll try to find it in Russia. Thanx! 

You essentially need the OS/2 Device Driver Kit, which is available as an
add-on subscription to the DevCon CD-ROM series.  The cost is US$200-US$300
here, but I have no idea about price or availability in Russia.  The DDK is
a CD-ROM disk that contains all of the device driver references in INF file
format, and also contains C header files, sample source code and tools.

The Virtual Device Driver Reference is available separately as a paper
publication for about US$30 here as IBM part number S10G-6310-XX, where XX
is the revision code (currently 02, September 1994).

 RS> PS: does anybody know the way used in VDD for adding custom
 RS> settings in DOS box, for example like VSIO does?

There is a Virtual Device Helper function for it:

 /*******************************************/
 /* This function registers a virtual       */
 /* device driver property with the DOS     */
 /* Session Manager.                        */
 /*******************************************/
 #include mvdm.h
 
 PSZ         PropertyName;     /*  Property name pointer */
 PSZ         Reserved;         /*  Must be set to 0 */
 ULONG       Reserved;         /*  Must be set to 0 */
 VPTYPE      PropertyType;     /*  Property type */
 VPORD       PropertyOrdinal;  /*  Property ordinal */
 ULONG       PropertyFlag;     /*  Property flag */
 PVOID       DefaultValue;     /*  Default value of the property */
 PVOID       ValidationData;   /*  Validation data */
 PFNVDHRP    ValidationFunc;   /*  Pointer to a virtual device driver
                                   property function */
 BOOL        rc;
 
 rc = VDHRegisterProperty(PropertyName, Reserved,
        Reserved, PropertyType, PropertyOrdinal,
        PropertyFlag, DefaultValue, ValidationData,
        ValidationFunc);

 
-- Mike


---
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.