Modifying DDKENV.BAT to Build 16-Bit Multimedia Drivers

Last reviewed: July 1, 1996
Article ID: Q152538
The information in this article applies to:
  • Microsoft Win32 Device Driver Kit (DDK) for Windows 95, version 4.0

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:

  • new-vars.bat, typically located in the \masm611\binr directory.
  • msvcvars.bat, typically located in the \msvc\bin directory (use a 16- bit version of Visual C++, such as 1.52).
  • ddkenv.bat 16 mmedia, typically located in the \ddk directory.

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 reference words: 4.00
KBCategory: kbprg kbmm kbtool
KBSubcategory: DdkMisc



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 1, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.