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

#ifndef __XFERLIST__
#define __XFERLIST__
#define MAX_TRANSFERS (8)
typedef struct _XFER_LIST {
CRITICAL_SECTION Lock;
HANDLE CloseEvent;
BOOL Closing;
LONG Transfers;
FILE_TRANSFER* List[MAX_TRANSFERS];
} XFER_LIST, *PXFER_LIST;
PXFER_LIST
CreateXferList(
VOID
);
VOID
DeleteXferList(
PXFER_LIST XferList
);
BOOL
AddTransferToList(
PXFER_LIST XferList,
FILE_TRANSFER* FileTransfer
);
BOOL
RemoveTransferFromList(
PXFER_LIST XferList,
FILE_TRANSFER* FileTransfer
);
BOOL
AreThereActiveTransfers(
PXFER_LIST XferList
);
FILE_TRANSFER*
TransferFromCookie(
PXFER_LIST XferList,
__int64 Cookie
);
#endif //__XFERLIST__