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.

77 lines
2.2 KiB

  1. /* xfr_srvc.h -- include file for transfer service routines
  2. *
  3. * Copyright 1990 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 2 $
  7. * $Date: 4/10/02 1:58p $
  8. */
  9. extern void xfer_set_pointer(HSESSION hSession, void *pV);
  10. extern void *xfer_get_pointer(HSESSION hSession);
  11. /* These are flags that can be passed to xfer_idle to indicate why it */
  12. /* has been called and what should be done, if anything. */
  13. #define XFER_IDLE_IO 0x00000001
  14. #define XFER_IDLE_DISPLAY 0x00000002
  15. extern void xfer_idle(HSESSION h, int nMode);
  16. #if !defined(XFER_ABORT)
  17. #define XFER_ABORT 1
  18. #endif
  19. #if !defined(XFER_SKIP)
  20. #define XFER_SKIP 2
  21. #endif
  22. extern int xfer_user_interrupt(HSESSION hSession);
  23. extern int xfer_user_abort(HSESSION hSession, int p);
  24. extern int xfer_carrier_lost(HSESSION hSession);
  25. extern void xfer_purgefile(HSESSION hSession, TCHAR *fname);
  26. extern int xfer_open_rcv_file(HSESSION hSession,
  27. struct st_rcv_open *pstRcv,
  28. unsigned long ulOverRide);
  29. extern void xfer_build_rcv_name(HSESSION hSession,
  30. struct st_rcv_open *pstRcv);
  31. extern int xfer_close_rcv_file(HSESSION Hsession,
  32. void *vhdl,
  33. int nReason,
  34. TCHAR *pszRemoteName,
  35. TCHAR *pszOurName,
  36. int nSave,
  37. unsigned long lFilesize,
  38. unsigned long lTime);
  39. extern VOID FAR * xfer_get_params(HSESSION hSession, int nProtocol);
  40. extern int xfer_set_comport(HSESSION hSession, int fSending, unsigned FAR *puiOldOptions);
  41. extern int xfer_restore_comport(HSESSION hSession, unsigned uiOldOptions);
  42. extern int xfer_save_partial(HSESSION hSession);
  43. extern int xfer_nextfile(HSESSION hSession, TCHAR *filename);
  44. extern void xfer_log_xfer(HSESSION hSession,
  45. int sending,
  46. TCHAR *theirname,
  47. TCHAR *ourname,
  48. int result);
  49. extern int xfer_opensendfile(HSESSION hSession,
  50. HANDLE *fp,
  51. TCHAR *file_to_open,
  52. long *size,
  53. TCHAR *name_to_send,
  54. void *ft);
  55. // struct s_filetime FAR *ft);
  56. extern void xfer_name_to_send(HSESSION hSession,
  57. TCHAR *local_name,
  58. TCHAR *name_to_send);