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

Send Feedback

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 CE debug zones at the end of the file, immediately before the last #endif directive.

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

    #ifdef UNDER_CE
    
    //
    // Windows 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 CE NDIS miniport driver.

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

  5. Build the Windows 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

How to Migrate a Windows-based Desktop NDIS Miniport Driver to Windows CE | Tools for Debugging and Testing

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.