CPI_Stream.h
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:

VC书籍

开发平台:

Visual C++

  1. typedef void* CP_HINSTREAM;  
  2. typedef void (*pfn_StreamUninitialise)(CP_HINSTREAM hStream);
  3. typedef BOOL (*pfn_StreamRead)(CP_HINSTREAM hStream, void* pDestBuffer, const unsigned int iBytesToRead, unsigned int* piBytesRead);
  4. typedef void (*pfn_StreamSeek)(CP_HINSTREAM hStream, const unsigned int iNewOffset);
  5. typedef UINT (*pfn_StreamTell)(CP_HINSTREAM hStream);
  6. typedef UINT (*pfn_StreamGetLength)(CP_HINSTREAM hStream);
  7. typedef BOOL (*pfn_StreamIsSeakable)(CP_HINSTREAM hStream);
  8. //
  9. typedef struct _CPs_InStream
  10. {
  11.     pfn_StreamUninitialise Uninitialise;
  12.     pfn_StreamRead Read;
  13.     pfn_StreamSeek Seek;
  14.     pfn_StreamTell Tell;
  15.     pfn_StreamGetLength GetLength;
  16.     pfn_StreamIsSeakable IsSeekable;
  17.     void* m_pModuleCookie;  
  18. } CPs_InStream;
  19. //
  20. CPs_InStream* CP_CreateInStream(const char* pcFlexiURL, HWND hWndOwner);