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.

75 lines
2.0 KiB

  1. #if defined INCL_KEY_MACROS
  2. #if !defined EMU_KEY_MACRO_H
  3. #define EMU_KEY_MACRO_H
  4. #pragma once
  5. //******************************************************************************
  6. // File: \wacker\tdll\Keymacro.h Created: 6/2/98 By: Dwayne M. Newsome
  7. //
  8. // Copyright 1998 by Hilgraeve Inc. --- Monroe, MI
  9. // All rights reserved
  10. //
  11. // Description:
  12. // This file represents a key macro. It is a representation of a remapped key
  13. // and the key strokes it represents.
  14. //
  15. // $Revision: 4 $
  16. // $Date: 12/27/01 2:15p $
  17. // $Id: keymacro.h 1.2 1998/06/12 07:20:41 dmn Exp $
  18. //
  19. //******************************************************************************
  20. #include <iostream.h>
  21. #include "shared\classes\inc_cmp.h"
  22. extern "C"
  23. {
  24. #include "keyutil.h"
  25. }
  26. //
  27. // Emu_Key_Macro
  28. //
  29. //------------------------------------------------------------------------------
  30. class Emu_Key_Macro
  31. {
  32. INC_NV_COMPARE_DEFINITION( Emu_Key_Macro );
  33. friend istream & operator>>( istream & theStream, Emu_Key_Macro & aMacro );
  34. friend ostream & operator<<( ostream & theStream, const Emu_Key_Macro & aMacro );
  35. public:
  36. enum
  37. {
  38. eMaxKeys = 100
  39. };
  40. //
  41. // constructors and destructor
  42. //
  43. //--------------------------------------------------------------------------
  44. Emu_Key_Macro( void );
  45. Emu_Key_Macro( const Emu_Key_Macro & aMacro );
  46. ~Emu_Key_Macro( void );
  47. //
  48. // assignment operator
  49. //
  50. //--------------------------------------------------------------------------
  51. Emu_Key_Macro & operator=( const Emu_Key_Macro & aMacro );
  52. Emu_Key_Macro & operator=( const keyMacro * aMacro );
  53. public:
  54. KEYDEF mKey; // Assigned key
  55. KEYDEF mKeyMacro[eMaxKeys]; // Array to hold the macro KEYDEFs
  56. int mMacroLen; // # of hKeys in the macro
  57. };
  58. #endif
  59. #endif