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.

43 lines
1.0 KiB

  1. #ifdef __cplusplus
  2. extern "C" { /* Assume C declarations for C++ */
  3. #endif /* __cplusplus */
  4. #include "fileshar.h"
  5. #pragma warning(disable:4200)
  6. typedef struct {
  7. LONG lOffset;
  8. LONG lLength;
  9. LPVOID lpBuffer;
  10. } BUFFER;
  11. typedef struct {
  12. int nBuffers;
  13. LONG lBufSize;
  14. LPVOID lpBufMem;
  15. HSHFILE hshfile;
  16. BOOL fStreaming;
  17. BOOL fUseDOSBuf;
  18. PAVIINDEX px;
  19. LONG lx;
  20. LONG lFileLength;
  21. int iNextBuf;
  22. BUFFER aBuf[];
  23. } BUFSYSTEM, *PBUFSYSTEM;
  24. PBUFSYSTEM FAR PASCAL InitBuffered(int nBuffers, LONG lBufSize,
  25. HSHFILE hshfile,
  26. PAVIINDEX px);
  27. LONG FAR PASCAL BufferedRead(PBUFSYSTEM pb, LONG l, LONG cb, LPVOID lp);
  28. LONG FAR PASCAL BeginBufferedStreaming(PBUFSYSTEM pb, BOOL fForward);
  29. LONG FAR PASCAL EndBufferedStreaming(PBUFSYSTEM pb);
  30. void FAR PASCAL EndBuffered(PBUFSYSTEM pb);
  31. #ifdef __cplusplus
  32. } /* End of extern "C" { */
  33. #endif /* __cplusplus */