The ADRC2VXD command allows you to append a resource onto a VxD file. You can use this command to add version information to your VxDs.
adrc2vxd vxdname resfilename
vxdname | Specifies the VxD filename |
resfilename | Specifies the resource filename. |
The following example appends the resource version.res onto the VxD vtestd.vxd
adrc2vxd vtestd.vxd version.res
You can use the following template to create a version resource for your VxD file
/********************************************************************/ /* Version control data */ /********************************************************************/ #include <version.h> #define VER_FILETYPE VFT_VXD #define VER_FILESUBTYPE DEVICE_ID #define VER_COMPANYNAME_STR "Company Name, Inc.\0" #define VER_FILEDESCRIPTION_STR "Sample VxD\0" #define VER_INTERNALNAME_STR "Sample\0" #define VER_LEGALCOPYRIGHT_YEARS "1993-1995\0" #define VER_ORIGINALFILENAME_STR "SAMPLE.VXD\0" #include <common.ver>
In the example, DEVICE_ID is the VxD's Device ID or UNDEFINED_DEVICE_ID (defined in inc32\vmm.h) for dynaload VxDs. Use the resource compiler (rc.exe) to compile the above (the include files version.h and common.ver are in the inc16 include file subdirectory) and adrc2vxd to add it to your VxD.