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.

73 lines
1.9 KiB

  1. /* File: C:\WACKER\xfer\hpr.h (Created: 24-Jan-1994)
  2. * created from HAWIN source:
  3. * hpr.h -- Exported definitions for HyperProtocol routines.
  4. *
  5. * Copyright 1989,1994 by Hilgraeve Inc. -- Monroe, MI
  6. * All rights reserved
  7. *
  8. * $Revision: 1 $
  9. * $Date: 10/05/98 1:16p $
  10. */
  11. #if !defined(OFF)
  12. #define OFF 0
  13. #endif
  14. #if !defined(ON)
  15. #define ON 1
  16. #endif
  17. #define H_CHECKSUM 1
  18. #define H_CRC 2
  19. /* hpr_rcv display row values */
  20. #define HR_DR_RCV_FILE 1
  21. #define HR_DR_VIR_SCAN 1
  22. #define HR_DR_STORING 2
  23. #define HR_DR_COMPRESS 3
  24. #define HR_DR_TOTAL_RET 3
  25. #define HR_DR_FILE_SIZE 3
  26. #define HR_DR_LAST_EVENT 4
  27. #define HR_DR_FILES_RCVD 4
  28. #define HR_DR_PSTATUS 5
  29. #define HR_DR_AMT_RCVD 5
  30. #define HR_DR_VUF 8
  31. #define HR_DR_VUT 12
  32. #define HR_DR_BOTMLINE 15
  33. /* hpr_snd display row values */
  34. #define HS_DR_SND_FILE 1
  35. #define HS_DR_COMPRESS 2
  36. #define HS_DR_TOTAL_RET 2
  37. #define HS_DR_FILE_SIZE 2
  38. #define HS_DR_LAST_EVENT 3
  39. #define HS_DR_FILES_SENT 3
  40. #define HS_DR_PSTATUS 4
  41. #define HS_DR_AMT_SENT 4
  42. #define HS_DR_VUF 7
  43. #define HS_DR_VUT 11
  44. #define HS_DR_BOTMLINE 14
  45. /* these four variables are settable by user
  46. * an external routine can set these values to change the default
  47. * behavior of HyperProtocol
  48. */
  49. // extern tbool h_useattr; /* use received attributes when avail */
  50. // extern tbool h_trycompress; /* try to use compression when possible */
  51. // extern tiny h_chkt; /* 1 == checksum, 2 == CRC */
  52. // extern tbool h_suspenddsk; /* TRUE if suspend for disk should be used */
  53. /* the entry points for receiving and sending respectively */
  54. extern int hpr_rcv(HSESSION hSession,
  55. int attended,
  56. int single_file);
  57. extern int hpr_snd(HSESSION hSession,
  58. int attended,
  59. int hs_nfiles,
  60. long hs_nbytes);
  61. /********************* end of hpr.h ***************************/