共用方式為


DEBUGLED

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This macro conditionally outputs WORD values to the LED.

Syntax

DEBUGLED (
    Condition, 
  (Parameters)
)

Parameters

  • Condition
    Input expression that determines when the parameter list is passed to WriteDebugLED.
  • Parameters
    A list of wIndex and dwPattern parameters to be passed to WriteDebugLED. Must be enclosed in parentheses.

Return Value

None.

Remarks

This macro may be used to conditionally output a debug LED pattern. The pattern is output if the Boolean input expression evaluates to TRUE.

Example

 DEBUGLED(dwCurrentNumberOfItems < dwMaxNumberOfItems,
          (3, 0x12345678));

Requirements

Header dbgapi.h
Windows Embedded CE Windows CE 2.10 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ERRORMSG
RETAILMSG