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

Contents of /tivocom/trunk/stdafx.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 254 - (show annotations) (download)
Sun Sep 9 23:26:20 2007 UTC (14 years, 4 months ago) by jeremyd2019
File MIME type: text/plain
File size: 1730 byte(s)
rework interfaces (bumped typelib version to 1.1).  Add support for decoding the MPEG stream.  Added support to read and write from streams (implementing IStream) and make the versions which take filenames use a stream implementation that wraps file access.  Make OpenTivoFile take the MAK as a parameter.  It has a default value of "" (empty string), which means try to get the MAK from the registry, so either omit that param (for those languages which permit that) or specify it as empty string to use the MAK from the registry.  Added progress reporting of MPEG stream decoding via a connection point.  Progress is updated every 100 frames, and percent complete is provided if the tivo file stream supports Seek and Stat functions

1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently,
3 // but are changed infrequently
4
5 #pragma once
6
7 /* disable warning C4290:
8 * C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
9 */
10 #pragma warning( disable: 4290 )
11
12 #ifndef STRICT
13 #define STRICT
14 #endif
15
16 // Modify the following defines if you have to target a platform prior to the ones specified below.
17 // Refer to MSDN for the latest info on corresponding values for different platforms.
18 #ifndef WINVER // Allow use of features specific to Windows XP or later.
19 #define WINVER 0x0500 // Change this to the appropriate value to target other versions of Windows.
20 #endif
21
22 #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
23 #define _WIN32_WINNT 0x0500 // Change this to the appropriate value to target other versions of Windows.
24 #endif
25
26 #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
27 #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
28 #endif
29
30 #ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
31 #define _WIN32_IE 0x0500 // Change this to the appropriate value to target other versions of IE.
32 #endif
33
34 #define _ATL_APARTMENT_THREADED
35 #define _ATL_NO_AUTOMATIC_NAMESPACE
36
37 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
38
39 #ifdef _DEBUG
40 //#define _ATL_DEBUG_INTERFACES
41 #endif
42
43 #include "resource.h"
44 #include <atlbase.h>
45 #include <atlcom.h>
46 #include <comdef.h>
47 #include <wincrypt.h>
48 #include <string>
49 #include <vector>
50
51 #include "tivodecoder.h"
52
53 using namespace ATL;

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13