# IRsCommandMng Struct Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | Execute ([in] IRsCommand *pCmd)
HRESULT | Undo (void)
HRESULT | Redo (void)
HRESULT | Clear (void)
HRESULT | EnumStackCommands ([in] RtStackInfo eRequest,[out, retval] IRsEnumCmds **ppEnum)
HRESULT | Hook ([in] IRsNotify *pListener)
HRESULT | Unhook ([in] IRsNotify *pListener)
## Properties
IRsCommand ** | ExecutingCmd`[get]`
RtUlong * | DepthLevel`[get]`
RtUlong | DepthLevel`[set]`
RtExecutionStatus * | ExecutionStatus`[get]`

## Detailed Description

IRsCommandMng Management object for commands.
Handles execute, undo and redo functionality for undo stack.
Provides additional methods for examining command stack.

## Member Function Documentation

HRESULT IRsCommandMng::Execute | ( | [in] IRsCommand * | pCmd | ) |

Parameters:

  | pCmd | [in] .

HRESULT IRsCommandMng::Undo | ( | void |  | ) |

Undo.

HRESULT IRsCommandMng::Redo | ( | void |  | ) |

Redo.

HRESULT IRsCommandMng::Clear | ( | void |  | ) |

Clear.

HRESULT IRsCommandMng::EnumStackCommands | ( | [in] RtStackInfo | eRequest,
|  | [out, retval] IRsEnumCmds ** | ppEnum |
| ) |  |  |

Parameters:

  | eRequest | [in] .

Returns:
  ppEnum [out,retval] .

HRESULT IRsCommandMng::Hook | ( | [in] IRsNotify * | pListener | ) |

Parameters:

  | pListener | [in] .

HRESULT IRsCommandMng::Unhook | ( | [in] IRsNotify * | pListener | ) |

Parameters:

  | pListener | [in] .

## Property Documentation

IRsCommand** IRsCommandMng::ExecutingCmd`[get]`

Returns:
  pVal [out,retval] .

RtUlong* IRsCommandMng::DepthLevel`[get]`

Returns:
  pVal [out,retval] .

RtUlong IRsCommandMng::DepthLevel`[set]`

Parameters:

  | newVal | [in] .

RtExecutionStatus* IRsCommandMng::ExecutionStatus`[get]`

Returns execution status of command manager.

Returns:
  pVal [out,retval] .