Multiplexer Driver Developer’s Guide

6 Translate Source Code

s

6 Translate Source Code

6.1Software Requirements

The WinMux build environment has been designed to work together with a Microsoft Visual Studio 6.0 SP3 or higher and the Microsoft Windows XP SP1 DDK. It is possible to use a Windows 2000 DDK as well, but in this case adaptations to the different build control files might be necessary.

6.2Preparing the Translation

1Create the environment variables “WINMUXVSTUDIOROOT” and “WINMUXDDKROOT” containing the path to the root of your Visual Studio and Windows DDK installation. Alternatively you can edit the file “driver\dir_env.cmd” and enter the correct paths to the DDK and the VC 6.0 there.

2Open the workspace sermux in the root directory. Select batch build.

3The executable files can be found under lib\wdm\[frechk] _wxp_x86\i386.

Note: The DDK is a software tool for Windows driver development.

6.3Compiler Flags

There is only one compiler flag “MUX_MANUAL” for a conditional compile of the driver. With this compiler flag set the driver can be compiled in a special manual version where opening and closing of the multiplexer can be controlled via special DeviceIoControl() commands instead of automatic control via the opened virtual channels. This manual version is used for internal automated module testing and is not relevant for usual driver operation.

Mux_Drv_DevGuide_v07

Page 26 of 36

2006-9-27

Confidential / Released

 

 

Page 26
Image 26
Siemens 7 manual Translate Source Code, Software Requirements, Preparing the Translation, Compiler Flags