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.

36 lines
980 B

  1. #ifndef _SGSTRUCT_H_
  2. #define _SGSTRUCT_H_
  3. // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4. //
  5. // SGSTRUCT.H
  6. //
  7. // Data structures to specify Scatther Gather Files
  8. //
  9. // Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
  10. //
  11. #pragma warning(disable:4200) /* zero-sized array */
  12. // Structure to specify the sizes and offsets of a Scatter-Gather File
  13. typedef struct _SGITEM
  14. {
  15. DWORD dwibFile; // offset into file of SG packet
  16. DWORD dwcbSegment; // size (in bytes) of SG packet
  17. UINT ibBodyPart; // offset into body part of SG packet
  18. } SGITEM, *PSGITEM;
  19. // structure to specify a scatther gather file
  20. typedef struct _SCATTER_GATHER_FILE
  21. {
  22. HANDLE hFile; // the file handle
  23. ULONG cSGList; //number of scatter-gather packets associated with file
  24. SGITEM rgSGList[]; // an array of size cSGList ie struct SGITEM rgSGList[cSGItem]
  25. } SCATTER_GATHER_FILE;
  26. #endif // !defined(_SGSTRUCT_H_)