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.

72 lines
2.0 KiB

  1. /* File: D:\WACKER\tdll\capture.h (Created: 12-Jan-1994)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 1 $
  7. * $Date: 10/05/98 12:35p $
  8. */
  9. #define CPF_ERR_BASE 0x230
  10. #define CPF_NO_MEMORY CPF_ERR_BASE+0x0001
  11. #define CPF_SIZE_ERROR CPF_ERR_BASE+0x0002
  12. extern HCAPTUREFILE CreateCaptureFileHandle(const HSESSION hSession);
  13. extern void DestroyCaptureFileHandle(HCAPTUREFILE hCapt);
  14. extern int InitializeCaptureFileHandle(const HSESSION hSession,
  15. HCAPTUREFILE hCapt);
  16. extern int LoadCaptureFileHandle(HCAPTUREFILE hCapt);
  17. extern int SaveCaptureFileHandle(HCAPTUREFILE hCapt);
  18. extern int cpfGetCaptureFilename(HCAPTUREFILE hCapt,
  19. LPTSTR pszName,
  20. const int nLen);
  21. extern int cpfSetCaptureFilename(HCAPTUREFILE hCapt,
  22. LPCTSTR pszName,
  23. const int nMode);
  24. #define CPF_MODE_CHAR 1
  25. #define CPF_MODE_LINE 2
  26. #define CPF_MODE_SCREEN 3
  27. #define CPF_MODE_RAW 4
  28. extern int cpfGetCaptureMode(HCAPTUREFILE hCapt);
  29. extern int cpfSetCaptureMode(HCAPTUREFILE hCapt,
  30. const int nCaptMode,
  31. const int nModeFlag);
  32. #define CPF_FILE_APPEND 1
  33. #define CPF_FILE_OVERWRITE 2
  34. #define CPF_FILE_REN_SEQ 3
  35. #define CPF_FILE_REN_DATE 4
  36. extern int cpfGetCaptureFileflag(HCAPTUREFILE hCapt);
  37. extern int cpfSetCaptureFileflag(HCAPTUREFILE hCapt,
  38. const int nSaveMode,
  39. const int nModeFlag);
  40. #define CPF_CAPTURE_ON 1
  41. #define CPF_CAPTURE_OFF 2
  42. #define CPF_CAPTURE_PAUSE 3
  43. #define CPF_CAPTURE_RESUME 4
  44. extern int cpfGetCaptureState(HCAPTUREFILE hCapt);
  45. extern int cpfSetCaptureState(HCAPTUREFILE hCapt, int nState);
  46. extern HMENU cpfGetCaptureMenu(HCAPTUREFILE hCapt);
  47. #define CF_CAP_CHARS CPF_MODE_CHAR
  48. #define CF_CAP_LINES CPF_MODE_LINE
  49. #define CF_CAP_SCREENS CPF_MODE_SCREEN
  50. extern void CaptureChar(HCAPTUREFILE hCapt, int nFlags, ECHAR cData);
  51. extern void CaptureLine(HCAPTUREFILE hCapt, int nFlags, ECHAR *achStr, int nLen);