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.

154 lines
4.6 KiB

  1. /* File: D:\WACKER\tdll\xfer_msc.hh (Created: 30-Dec-1993)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 4 $
  7. * $Date: 4/25/02 11:26a $
  8. */
  9. #include "tdll\sess_ids.h"
  10. #define XFER_MESSAGE_LENGTH 80
  11. #define XFER_NAME_LENGTH 256
  12. /*
  13. * All the structures in this structure are defined in other modules. They
  14. * all conform to the single rule that the first element of the structure is
  15. * an integer that contains the size of the structure.
  16. */
  17. struct stSizeType
  18. {
  19. int nSize;
  20. };
  21. typedef struct stSizeType SZ_TYPE;
  22. struct stXferData
  23. {
  24. HSESSION hSession;
  25. /* This holds the generic transfer parameters */
  26. SZ_TYPE *xfer_old_params; /* for conditional save */
  27. SZ_TYPE *xfer_params; /* the parameters currently in use */
  28. /* TODO: add stuff for conditional save */
  29. /* This holds the protocol specific parameters */
  30. SZ_TYPE *xfer_proto_params[SFID_PROTO_PARAMS_END - SFID_PROTO_PARAMS];
  31. #define XFER_NONE 0
  32. #define XFER_SEND 1
  33. #define XFER_RECV 2
  34. int nDirection;
  35. #define XFER_ABORT 1
  36. #define XFER_SKIP 2
  37. #define XFER_NO_AUTOSTART 3
  38. int nUserCancel; /* User canceled the transfer */
  39. int nCarrierLost; /* Carrier has been lost */
  40. /* This holds the stuff for the send list */
  41. int nSendListCount; /* How many files so far */
  42. TCHAR **acSendNames; /* Pointer to list block */
  43. VOID *pXferStuff; /* Set by the other side for storage */
  44. /*
  45. * This block of stuff is used by the transfer displays.
  46. */
  47. HWND hwndXfrDisplay; /* handle of the display window */
  48. int nLgSingleTemplate; /* template ID for single file transfer */
  49. int nLgMultiTemplate; /* template ID for multiple file xfer */
  50. #if FALSE
  51. /* Removed and switched to integers */
  52. LPCSTR pszLgSingleTemplate; /* template for single file transfer */
  53. LPCSTR pszLgMultiTemplate; /* template for multiple file transfer */
  54. #if FALSE
  55. /* Size change is not supported in Lower Wacker */
  56. LPTSTR pszSmSingleTemplate;
  57. LPTSTR pszSmMultiTemplate;
  58. #endif
  59. #endif
  60. int nStatusBase; /* start of status ID list */
  61. int nEventBase; /* start of event ID list */
  62. int nOldBps; /* Saved copy of the following */
  63. int nBps; /* TRUE to display as BPS vs CPS */
  64. int nExpanded; /* Set if we have already expanded */
  65. int nCancel; /* the ever popular cancel option */
  66. int nSkip; /* TRUE if we want to skip this file */
  67. int nPerCent; /* Percent done, if we know it */
  68. int nClose; /* The transfer finished */
  69. int nCloseStatus; /* The closing status */
  70. /*
  71. * First, we have the bit flags indicating which fields have changed
  72. */
  73. int bChecktype : 1;
  74. int bErrorCnt : 1;
  75. int bPcktErrCnt : 1;
  76. int bLastErrtype : 1;
  77. int bTotalSize : 1;
  78. int bTotalSoFar : 1;
  79. int bFileSize : 1;
  80. int bFileSoFar : 1;
  81. int bPacketNumber : 1;
  82. int bTotalCnt : 1;
  83. int bFileCnt : 1;
  84. int bEvent : 1;
  85. int bStatus : 1;
  86. int bElapsedTime : 1;
  87. int bRemainingTime : 1;
  88. int bThroughput : 1;
  89. int bProtocol : 1;
  90. int bMessage : 1;
  91. int bOurName : 1;
  92. int bTheirName : 1;
  93. /*
  94. * Then, we have the data fields themselves
  95. */
  96. int wChecktype; /* Added for XMODEM */
  97. int wErrorCnt;
  98. int wPcktErrCnt; /* Added for XMODEM */
  99. int wLastErrtype; /* Added for XMODEM */
  100. long lTotalSize;
  101. long lTotalSoFar;
  102. long lFileSize;
  103. long lFileSoFar;
  104. long lPacketNumber; /* Added for XMODEM */
  105. int wTotalCnt;
  106. int wFileCnt;
  107. int wEvent;
  108. int wStatus;
  109. long lElapsedTime;
  110. long lRemainingTime;
  111. long lThroughput;
  112. int uProtocol;
  113. TCHAR acMessage[XFER_MESSAGE_LENGTH];
  114. TCHAR acOurName[XFER_NAME_LENGTH];
  115. TCHAR acTheirName[XFER_NAME_LENGTH];
  116. /*
  117. * End of the transfer display data !!
  118. */
  119. };
  120. typedef struct stXferData XD_TYPE;