Leaked source code of windows server 2003
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.

46 lines
1.9 KiB

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