Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.8 KiB

  1. /*** ntalias.hpp - Alias command processor for NT debugger
  2. *
  3. * Copyright <C> 1999-2001, Microsoft Corporation
  4. *
  5. * Purpose:
  6. * To establish, maintain, and translate alias command tokens
  7. *
  8. *
  9. * Revision History:
  10. *
  11. * [-] 08-Aug-1999 Richg Created.
  12. *
  13. *************************************************************************/
  14. #ifndef __NTALIAS_HP__
  15. #define __NTALIAS_HP__
  16. /************************************************************************
  17. * *
  18. * Name: ALIAS structure *
  19. * *
  20. * Purpose: Structure used to contain Alias elements. This sturcture *
  21. * is only forward linked (Next.flink). *
  22. * *
  23. * This structure is allocated by fnSetAliasExpression( ) *
  24. * and freed by fnDeleteAliasExpression( ). *
  25. * *
  26. * Anchor: AliasListHead *
  27. * *
  28. ************************************************************************/
  29. typedef struct _ALIAS
  30. {
  31. struct _ALIAS* Next; // Link
  32. PSTR Name; // Name\text of aliased token
  33. PSTR Value; // Alias text
  34. } ALIAS, *PALIAS;
  35. extern PALIAS g_AliasListHead;
  36. extern ULONG g_NumAliases;
  37. HRESULT SetAlias(PCSTR SrcText, PCSTR DstText);
  38. void ParseSetAlias(void);
  39. HRESULT DeleteAlias(PCSTR SrcText);
  40. void ParseDeleteAlias(void);
  41. void ListAliases(void);
  42. void ReplaceAliases(PSTR CommandString);
  43. #endif // #ifndef __NTALIAS_HPP__