Muokkaa

Jaa


ds, dS (Display String)

The ds and dS commands display a STRING, ANSI_STRING, or UNICODE_STRING structures.

These commands do not display null-delimited character strings, but rather string structures.

If you have the address of the characters of a Unicode string then use the du command instead. Use the da command to display ASCII characters. For more information, see d, da, db, dc, dd, dD, df, dp, dq, du, dw (Display Memory).

d{s|S} [/c Width] [Address]

Parameters

s
Specifies that a STRING or ANSI_STRING structure is to be displayed. (This s is case-sensitive.)

S
Specifies that a UNICODE_STRING structure is to be displayed. (This S is case-sensitive.)

/c Width
Specifies the number of characters to display on each line. This number includes null characters, which will not be visible.

Address
The memory address where the where the UNICODE_STRING structure is stored.

For more syntax details, see Address and Address Range Syntax. If omitted, the last address used in a display command is assumed.

Environment

Item Description
Modes User mode, kernel mode
Targets Live, crash dump
Platforms All

Additional Information

For an overview of memory manipulation and a description of other memory-related commands, see Reading and Writing Memory.

Remarks

If you want to display Unicode strings in the Locals window or Watch window of WinDbg, you need to use the .enable_unicode (Enable Unicode Display) command first.