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.

65 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2001.
  5. //
  6. // File: cmdkey: IO.H
  7. //
  8. // Contents: Command line input/output header
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 07-09-01 georgema Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __IO_H__
  18. #define __IO_H__
  19. #define STRINGMAXLEN 2000
  20. #ifdef IOCPP
  21. // variables to be allocated by the IO subsystem, visible to other modules
  22. HMODULE hMod = NULL;
  23. WCHAR *szArg[4] = {0};
  24. //WCHAR szOut[STRINGMAXLEN + 1] = {0};
  25. WCHAR *szOut = NULL;
  26. #else
  27. extern HMODULE hMod;
  28. extern WCHAR *szArg[];
  29. //extern WCHAR szOut[];
  30. extern WCHAR *szOut;
  31. #endif
  32. // STD IN/OUT GROUP
  33. DWORD
  34. GetString(
  35. LPWSTR buf,
  36. DWORD buflen,
  37. PDWORD len
  38. );
  39. VOID
  40. GetStdin(
  41. OUT LPWSTR Buffer,
  42. IN DWORD BufferMaxChars
  43. );
  44. VOID
  45. PutStdout(
  46. IN LPWSTR String
  47. );
  48. // MESSAGES GROUP
  49. WCHAR *
  50. ComposeString(DWORD);
  51. void
  52. PrintString(DWORD);
  53. #endif