Modifying DDKENV.BAT to Build 16-Bit Multimedia Drivers

ID: Q152538


The information in this article applies to:


SUMMARY

The Windows 95 Device Driver Kit (DDK) contains a number of sample multimedia device drivers. Many of these drivers contain both a 16-bit DRV component and a 32-bit VXD component. In order to build the 16-bit multimedia driver components, you can run the following three batch files in the order listed. Note the two parameters passed to ddkenv.bat:

The ddkenv.bat file is built dynamically when the Windows 95 DDK is installed. The standard ddkenv.bat file will not work properly for building the 16-bit sample multimedia drivers. Specifically, the include order is incorrect. In order to build these 16-bit drivers, you can modify the :ENVIRON16 section of ddkenv.bat. Following is the unmodified :ENVIRON16 section of ddkenv.bat:

   :ENVIRON16
   REM *** add the location of your 16-bit environment here ***
   set WIN16=TRUE
   set include=%ddkroot%\%2\inc;%ddkroot%\inc16;%sdkroot%\inc16;
   %_include%;%ddkroot%\inc32;%sdkroot%\include
   set lib=%ddkroot%\lib;%sdkroot%\lib16;%_lib%
   path=%ddkroot%\%2\bin;%ddkroot%\bin;%sdkroot%\binw16;%sdkroot%\bin;
   %_path%
   prompt Windows 95 16-bit %2 build$_%_prompt%
   goto EGRESS 

In order to build the 16-bit sample multimedia drivers, you can modify the "set include=" line above and move %sdkroot%\include ahead of %_include%.

Following is the modified "set include=" line:

   set include=%ddkroot%\%2\inc;%ddkroot%\inc16;%sdkroot%\inc16;
   %sdkroot%\include;%_include%;%ddkroot%\inc32; 


REFERENCES

See the Windows 95 DDK for more information on Windows 95 multimedia drivers.

Additional query words: 4.00


Keywords          : kbmm kbnokeyword kbDDK 
Version           : 4.00
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 5, 1999