Source code of Windows XP (NT5)
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.

55 lines
793 B

  1. #ifndef __XFERLIST__
  2. #define __XFERLIST__
  3. #define MAX_TRANSFERS (8)
  4. typedef struct _XFER_LIST {
  5. CRITICAL_SECTION Lock;
  6. HANDLE CloseEvent;
  7. BOOL Closing;
  8. LONG Transfers;
  9. FILE_TRANSFER* List[MAX_TRANSFERS];
  10. } XFER_LIST, *PXFER_LIST;
  11. PXFER_LIST
  12. CreateXferList(
  13. VOID
  14. );
  15. VOID
  16. DeleteXferList(
  17. PXFER_LIST XferList
  18. );
  19. BOOL
  20. AddTransferToList(
  21. PXFER_LIST XferList,
  22. FILE_TRANSFER* FileTransfer
  23. );
  24. BOOL
  25. RemoveTransferFromList(
  26. PXFER_LIST XferList,
  27. FILE_TRANSFER* FileTransfer
  28. );
  29. BOOL
  30. AreThereActiveTransfers(
  31. PXFER_LIST XferList
  32. );
  33. FILE_TRANSFER*
  34. TransferFromCookie(
  35. PXFER_LIST XferList,
  36. __int64 Cookie
  37. );
  38. #endif //__XFERLIST__