Share via


PTM_FIELD_DESC (Windows Embedded CE 6.0)

1/5/2010

This structure describes a single field in an array of process, thread, or module values.

Syntax

typedef struct _PTM_FIELD_DESC {
  WORD wIdentifier;
  WORD wSize;
  LPOLESTR szLabel;
  LPOLESTR szFormat;
} PTM_FIELD_DESC;

Members

  • wIdentifier
    Identifier label for field.

    -1 indicates a custom field.

  • wSize
    Size of field in bytes.
  • szLabel
    Field label.

    This value is a zero-terminated string.

  • szFormat
    Default format.

    For more information, see Remarks.

Remarks

In general, the printf format is supported. Two exceptions to the format are not supported, and eXdi adds several additional format specifications for GUIDs, bitfields, and enumerations.

The following list shows the exceptions to printf format.

  • I64 is not permitted in the prefix.
  • The wildcard character * cannot be used to define width values or to define precision values.

The following list shows additional format specifications that this structure supports.

  • This format provides a GUID field of the form
    %G{GUIDNum}
  • This format provides bitfield descriptions of the form
    -%T{N=BitFieldNameN, M=BitFieldNameM...}
    The format specifier displays all set bitfields, separated by a comma (","). Any nondescribed bit is ignored.
    The bitfield specifications are described in the following list:
    • BitFieldNameN and BitFieldNameM are strings of type char with no embedded commas (",").
    • Bit numbers N and M are in the range [0...63].
      If the bit number is in [0...31], the BitfieldName is displayed for bit number == 1.
      If the bit number is in [32...63], the BitfieldName is displayed for bit number == 0.
  • This format provides enumeration descriptions of the form
    -%N{N=EnumElementNameN, M=EnumElementNameM...}
    Any nondescribed enumeration value is ignored.
    The enumeration descriptions use the following specifications:
    • N and M are decimal DWORD values
    • EnumElementNameN and EnumElementNameM are strings of type char with no embedded commas (",").

Requirements

Header FlexiPMTInfo.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

IFlexiPTMInfo Structures