DB_UndoStatus

This function returns whether or not an Undo can be performed (so menu items can be grayed appropriately, etc.). The function returns bit DB_US_UNDO set if an Undo is possible.

This function cannot return an error.