.fnret (Display Function Return Value)

The .fnret command displays information about a function's return value.

.fnret [/s] Address [Value] 

Parameters

/s
Sets the $callret pseudo-register equal to the return value that is being displayed, including type information.

Address
Specifies the address of the function.

Value
Specifies the return value to display. If you include Value, .fnret casts Value to the return type of the specified function and displays it in the format of the return type. If you omit Value, the debugger obtains the return value of the function from the return value registers.

Environment

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

Remarks

If you include the Value parameter, the .fnret command only casts this value to the proper type and displays the results.

If you omit Value, the debugger uses the return value registers to determine this value. If a function has returned more recently than the function that the Address parameter specifies, the value that is displayed will probably not be a value that this function returned.