/[tivodecode]/tivocom/trunk/CTivoChunk.h
ViewVC logotype

Diff of /tivocom/trunk/CTivoChunk.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 239 by jeremyd2019, Wed Aug 15 06:53:07 2007 UTC revision 254 by jeremyd2019, Sun Sep 9 23:26:20 2007 UTC
# Line 10  Line 10 
10  #error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms."  #error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms."
11  #endif  #endif
12    
   
   
13  // CTivoChunk  // CTivoChunk
14    
15  class ATL_NO_VTABLE CTivoChunk :  class ATL_NO_VTABLE CTivoChunk :
16          public CComObjectRootEx<CComSingleThreadModel>,          public CComObjectRootEx<CComSingleThreadModel>,
17  //      public CComCoClass<CTivoChunk, &CLSID_TivoChunk>,  //      public CComCoClass<CTivoChunk, &CLSID_TivoChunk>,
18          public IDispatchImpl<ITivoChunk, &IID_ITivoChunk, &LIBID_tivocomLib, /*wMajor =*/ 1, /*wMinor =*/ 0>          public IDispatchImpl<ITivoChunk, &IID_ITivoChunk, &LIBID_tivocomLib, /*wMajor =*/ 1, /*wMinor =*/ 1>
19  {  {
20            friend class CTivoFile;
21          tivo_stream_chunk* m_chunk;          tivo_stream_chunk* m_chunk;
22          off_t m_chunkstart;          ULARGE_INTEGER m_chunkstart;
23          CComPtr<ITivoChunk> m_chunk0;          CComPtr<ITivoChunk> m_chunk0;
24          std::string m_mak;          std::string m_mak;
25          bool m_decrypted;          bool m_decrypted;
# Line 52  END_COM_MAP() Line 51  END_COM_MAP()
51                          free(m_chunk);                          free(m_chunk);
52          }          }
53    
54          STDMETHOD(Init)(const std::string & mak, ITivoChunk* chunk0, FILE* fh);          STDMETHOD(Init)(const std::string & mak, ITivoChunk* chunk0, IStream* pStm, ULARGE_INTEGER* pChunkPos);
55    
56  public:  public:
57    

Legend:
Removed from v.239  
changed lines
  Added in v.254

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13