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.

90 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. Chcp.hxx
  5. Abstract:
  6. This module contains the definition for the CHCP class, which
  7. implements the DOS5-compatible Chcp utility.
  8. Author:
  9. Ramon Juan San Andres (ramonsa) 01-May-1990
  10. Revision History:
  11. --*/
  12. #if !defined( _CHCP_ )
  13. #define _CHCP_
  14. //
  15. // Exit codes
  16. //
  17. #define EXIT_NORMAL 0
  18. #define EXIT_ERROR 1
  19. #include "object.hxx"
  20. #include "keyboard.hxx"
  21. #include "program.hxx"
  22. #include "screen.hxx"
  23. //
  24. // Forward references
  25. //
  26. DECLARE_CLASS( CHCP );
  27. class CHCP : public PROGRAM {
  28. public:
  29. DECLARE_CONSTRUCTOR( CHCP );
  30. NONVIRTUAL
  31. ~CHCP (
  32. );
  33. NONVIRTUAL
  34. BOOLEAN
  35. Initialize (
  36. );
  37. NONVIRTUAL
  38. BOOLEAN
  39. Chcp (
  40. );
  41. private:
  42. NONVIRTUAL
  43. BOOLEAN
  44. DisplayCodePage (
  45. );
  46. NONVIRTUAL
  47. BOOLEAN
  48. ParseArguments (
  49. );
  50. NONVIRTUAL
  51. BOOLEAN
  52. SetCodePage (
  53. );
  54. BOOLEAN _SetCodePage;
  55. DWORD _CodePage;
  56. SCREEN _Screen;
  57. };
  58. #endif // _CHCP_