Partager via


DBGPARAM Structure Declaration (Windows CE 5.0)

Send Feedback

DBGPARAM holds the debug output information by setting the global variable dpCurSettings.

The following fields are defined by dpCurSettings.

Field Description
Module name Looks for debug zone initialization information in the development workstation registry.
Debug zone name Shows the debug zone name that is displayed by the control application, such as Target Control.

The control application turns the debug zones on or off.

Initial debug zone mask Turns on specific debug zones during startup.

This is the default field.

The following code example shows a DBGPARAM structure in the application's source code for the previously defined debug zones and debug zone masks.

DBGPARAM dpCurSettings = {
  TEXT("DbgSamp1"), {
    TEXT("Init"),TEXT("Seconds"),TEXT("Except"),TEXT(""),
    TEXT(""),TEXT(""),TEXT(""),TEXT(""),
    (""),TEXT(""),TEXT(""),TEXT(""),
    TEXT(""),TEXT(""),TEXT("Warnings"), TEXT("Errors")},
    ZONEMASK_ERROR|ZONEMASK_INIT
}; 

In this example, DbgSamp1 is either a process or module name, followed by the descriptive names for the 16 debug zones that are defined in the application's header file.

These descriptive names are listed in order of their bit position. The debug zone corresponding to 0x01 is listed first and the debug zone corresponding to 0x8000 is listed last.

Two of the 16 debug zones, ZONEMASK_ERROR and ZONEMASK_INIT, are turned on when the application starts.

In the subsequent output, the words Init and Errors appear, which correspond to the debug zones ZONEMASK_INIT and ZONEMASK_ERROR.

See Also

Application Debugging with the Kernel Debugger

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.