Adding Debug Zones to the NDIS Miniport Driver Initialization Functions (Windows Embedded CE 6.0)

1/6/2010

After adding the NDIS miniport driver for a Windows-based desktop platform to your Workspace, use Platform Builder to modify the NDIS miniport driver initialization functions.

To add debug zones to the NDIS miniport driver initialization functions

  1. In %_WINCEROOT%\Platform\%_TGTPLAT%\Drivers\CENDISMiniport, open Mp.h , and then define Windows Embedded CE debug zones at the end of the file, immediately before the last #endif directive.

    The following code example shows how to add Windows Embedded CE debug zones.

    #ifdef UNDER_CE
    
    //
    // Windows Embedded CE debug zones
    //
    
    #define ZONE_INIT      DEBUGZONE(0)
    #define ZONE_ERROR     DEBUGZONE(15)
    
    #endif  //  UNDER_CE
    
  2. In %_WINCEROOT%\Platform\%_TGTPLAT%\Drivers\CENDISMiniport, open Mp_main.c, and define dpCurSettings immediately above the NDIS miniport driver DllMain entry point definition.

    The following code example shows how to define dpCurSettings.

    DBGPARAM dpCurSettings = {
        TEXT("e100bex"), 
        {
            TEXT("Init"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Undefined"),
            TEXT("Warning"),
            TEXT("Error") 
        },
        0x000b
    };
    
  3. From the IDE Build menu, choose Open Build Release Directory.

  4. Navigate to the directory containing your Windows Embedded CE NDIS miniport driver.

    Be sure your NDIS miniport driver is in %_WINCEROOT%\Platform\%_TGTPLAT%\Drivers\CENDISMiniport.

  5. Build the Windows Embedded CE NDIS miniport driver with the Build tool.

    For more information about the Build tool, see Build Tool. Microsoft recommends using the -c parameter with the Build tool to delete all object files.

See Also

Tasks

How to Migrate a Windows-based Desktop NDIS Miniport Driver to Windows Embedded CE

Other Resources

Tools for Debugging