home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / C_C++ / BorlandCompiler / freecommandLinetools.exe / Include / mstv.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-27  |  3.7 KB  |  147 lines

  1. /***********************************************************************
  2. **      M S T V . H                                                    *
  3. **                                                                     *
  4. ************************************************************************
  5. ** Copyright (C) 1996 - 1999 Microsoft Corporation                         *
  6. **                 All Rights Reserved                                 *
  7. ************************************************************************/
  8. /*
  9.  
  10.     MSTV.H
  11.  
  12.     Class definitions for CommMSTV SDK.
  13.  
  14. This is a part of the Microsoft TV SDK library.
  15. See the TODO.hlp file for detailed information regarding the
  16. Microsoft TV SDK product.
  17.  
  18. */
  19.  
  20. #ifndef _MSTV_H_
  21. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  22. #define _MSTV_H_
  23.  
  24.  
  25. // Disable export declaration for third party compilation
  26. #ifdef DLLEXPORT
  27. #undef DLLEXPORT   // as nothing
  28. #endif
  29.  
  30. #ifdef DONTUSEDLLDECLSPEC
  31.  
  32. #define COMMMSTVEXPORT
  33.  
  34. #else
  35.  
  36. #ifdef BUILDCOMMMSTV
  37. #define COMMMSTVEXPORT __declspec ( dllexport )
  38. #else
  39. #define COMMMSTVEXPORT __declspec ( dllimport )
  40. #endif
  41.  
  42. #endif // DONTUSEDLLDECLSPEC
  43.  
  44. // Defines for Database in-memory structs
  45. #define MAX_CALLLETTERS    10
  46. #define MAX_TITLE        256
  47. #define MAX_DESCRIPTION    1024
  48. #define    MAX_LOGOMONIKER    1024
  49.  
  50. typedef struct tagCHANNEL_INFO
  51. {
  52.     LONG    lChannelID;
  53.     LONG    lTuningSpace;
  54.     LONG    lChannelNumber;
  55.     LONG    lNetworkID;
  56.     LONG    lRatingID;
  57.     LONG    lDisplayMask;
  58.     LONG    lPaymentAddress;
  59.     LONG    lPaymentToken;
  60.     LONG    lLength;
  61.     DATE    StartTime;
  62.     DATE    EndTime;
  63.     DATE    LastUpdate;
  64.     TCHAR    szCallLetters[MAX_CALLLETTERS];
  65.     TCHAR    szDescription[MAX_DESCRIPTION];
  66.     TCHAR    szNetworkName[MAX_CALLLETTERS];
  67.     TCHAR    szNetworkLogoMoniker[MAX_LOGOMONIKER];
  68.     BOOL    fTunable;
  69. } CHANNEL_INFO;
  70.  
  71. #define CONTINUOUS_EPISODE    0
  72.  
  73. // lRepetition below is set to one of these values if Episode is a representation
  74. // of a reminder
  75. #define REMIND_NONE 0
  76. #define REMIND_ONCE 1
  77. #define REMIND_DAILY 2
  78. #define REMIND_WEEKLY 3
  79. #define REMIND_WEEKDAYS 4
  80. #define REMIND_MAX 4
  81.  
  82. #define TUNING_DEFAULT    0
  83.  
  84.  
  85. #define VIRTUAL_TUNINGSPACE(a) (a < 0 ? TRUE : FALSE )
  86.  
  87. typedef struct tagTUNING_INFO
  88. {
  89.     LONG    lTuningSpace;
  90.     LONG    lChannelNumber;
  91.     LONG    lVideoStream;
  92.     LONG    lAudioStream;
  93.     BSTR    bsIPStream;    // xxx.xxx.xxx.xxx
  94.     TCHAR    szCallLetters[MAX_CALLLETTERS];
  95. } TUNING_INFO;
  96.  
  97.  
  98.  
  99. // General error domains
  100.  
  101. #define    ERRDOM_DB            0x010000
  102. #define ERRDOM_FILE            0x020000
  103. #define ERRDOM_MEMORY        0x040000
  104. #define ERRDOM_TIMING        0x080000    // issue may go away if we just retry a few seconds later
  105. #define ERRDOM_STATE        0x0F0000  
  106. #define ERRDOM_INSTALL        0x100000    // something missing from the install
  107.     
  108. #define ERRDOM_OTHER        0xFF0000    // miscellaneous
  109.  
  110.  
  111. // General error codes
  112.  
  113. #define ERR_SUCCEEDED                0x00000000
  114.  
  115. // database errors
  116. #define ERR_NULL_CHANNEL_LIST        (ERRDOM_DB | 0x0001)        // chanlist null
  117. #define ERR_EPISODE_RS_FAILED        (ERRDOM_DB | 0x0002)        // openRecordSet for Episode failed
  118.  
  119. // file errors
  120.  
  121.  
  122. // memory errors
  123.  
  124.  
  125. // timing errors
  126.  
  127.  
  128. // state errors
  129. #define ERR_NULL_TVXDOC                (ERRDOM_STATE | 0x0001)    // CTvxDoc not initialized yet
  130. #define ERR_IN_MODAL_STATE            (ERRDOM_STATE | 0x0002)    // Modal dlg is up
  131.  
  132.  
  133. // installation errors
  134. #define ERR_FILE_MSVIDEO_MISSING    (ERRDOM_INSTALL | 0x0001)    // msvideo.htm is missing
  135. #define ERR_FILE_NODEVICE_MISSING    (ERRDOM_INSTALL | 0x0002)    // nodevice.htm is missing
  136. #define ERR_FILE_MSGUIDE_MISSING    (ERRDOM_INSTALL | 0x0003) // msguide.htm is missing
  137.  
  138.  
  139. // misc
  140. #define ERR_CANT_NAVIGATE            (ERRDOM_OTHER | 0x0001)    // IWebBrowser::Navigate() failed
  141. #define ERR_CHANNEL_DNE                (ERRDOM_OTHER | 0x0002)    // specified channel does not exists
  142.  
  143. #pragma option pop /*P_O_Pop*/
  144. #endif // _MSTV_H_
  145.  
  146.  
  147.