home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / MSTV.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  3.6 KB  |  138 lines

  1. /***********************************************************************
  2. **      M S T V . H                                                    *
  3. **                                                                     *
  4. ************************************************************************
  5. ** Copyright (C) 1996 by 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_S*/
  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. #ifdef BUILDCOMMMSTV
  30. #define COMMMSTVEXPORT __declspec ( dllexport )
  31. #else
  32. #define COMMMSTVEXPORT __declspec ( dllimport )
  33. #endif
  34.  
  35. // Defines for Database in-memory structs
  36. #define MAX_CALLLETTERS    10
  37. #define MAX_TITLE        256
  38. #define MAX_DESCRIPTION    1024
  39. #define    MAX_LOGOMONIKER    1024
  40.  
  41. typedef struct tagCHANNEL_INFO
  42. {
  43.     LONG    lChannelID;
  44.     LONG    lTuningSpace;
  45.     LONG    lChannelNumber;
  46.     LONG    lNetworkID;
  47.     LONG    lRatingID;
  48.     LONG    lDisplayMask;
  49.     LONG    lPaymentAddress;
  50.     LONG    lPaymentToken;
  51.     LONG    lLength;
  52.     DATE    StartTime;
  53.     DATE    EndTime;
  54.     DATE    LastUpdate;
  55.     TCHAR    szCallLetters[MAX_CALLLETTERS];
  56.     TCHAR    szDescription[MAX_DESCRIPTION];
  57.     TCHAR    szNetworkName[MAX_CALLLETTERS];
  58.     TCHAR    szNetworkLogoMoniker[MAX_LOGOMONIKER];
  59.     BOOL    fTunable;
  60. } CHANNEL_INFO;
  61.  
  62. #define CONTINUOUS_EPISODE    0
  63.  
  64. // lRepetition below is set to one of these values if Episode is a representation
  65. // of a reminder
  66. #define REMIND_NONE 0
  67. #define REMIND_ONCE 1
  68. #define REMIND_DAILY 2
  69. #define REMIND_WEEKLY 3
  70. #define REMIND_WEEKDAYS 4
  71. #define REMIND_MAX 4
  72.  
  73. #define TUNING_DEFAULT    0
  74.  
  75.  
  76. #define VIRTUAL_TUNINGSPACE(a) (a < 0 ? TRUE : FALSE )
  77.  
  78. typedef struct tagTUNING_INFO
  79. {
  80.     LONG    lTuningSpace;
  81.     LONG    lChannelNumber;
  82.     LONG    lVideoStream;
  83.     LONG    lAudioStream;
  84.     BSTR    bsIPStream;    // xxx.xxx.xxx.xxx
  85.     TCHAR    szCallLetters[MAX_CALLLETTERS];
  86. } TUNING_INFO;
  87.  
  88.  
  89.  
  90. // General error domains
  91.  
  92. #define    ERRDOM_DB            0x010000
  93. #define ERRDOM_FILE            0x020000
  94. #define ERRDOM_MEMORY        0x040000
  95. #define ERRDOM_TIMING        0x080000    // issue may go away if we just retry a few seconds later
  96. #define ERRDOM_STATE        0x0F0000  
  97. #define ERRDOM_INSTALL        0x100000    // something missing from the install
  98.     
  99. #define ERRDOM_OTHER        0xFF0000    // miscellaneous
  100.  
  101.  
  102. // General error codes
  103.  
  104. #define ERR_SUCCEEDED                0x00000000
  105.  
  106. // database errors
  107. #define ERR_NULL_CHANNEL_LIST        (ERRDOM_DB | 0x0001)        // chanlist null
  108. #define ERR_EPISODE_RS_FAILED        (ERRDOM_DB | 0x0002)        // openRecordSet for Episode failed
  109.  
  110. // file errors
  111.  
  112.  
  113. // memory errors
  114.  
  115.  
  116. // timing errors
  117.  
  118.  
  119. // state errors
  120. #define ERR_NULL_TVXDOC                (ERRDOM_STATE | 0x0001)    // CTvxDoc not initialized yet
  121. #define ERR_IN_MODAL_STATE            (ERRDOM_STATE | 0x0002)    // Modal dlg is up
  122.  
  123.  
  124. // installation errors
  125. #define ERR_FILE_MSVIDEO_MISSING    (ERRDOM_INSTALL | 0x0001)    // msvideo.htm is missing
  126. #define ERR_FILE_NODEVICE_MISSING    (ERRDOM_INSTALL | 0x0002)    // nodevice.htm is missing
  127. #define ERR_FILE_MSGUIDE_MISSING    (ERRDOM_INSTALL | 0x0003) // msguide.htm is missing
  128.  
  129.  
  130. // misc
  131. #define ERR_CANT_NAVIGATE            (ERRDOM_OTHER | 0x0001)    // IWebBrowser::Navigate() failed
  132. #define ERR_CHANNEL_DNE                (ERRDOM_OTHER | 0x0002)    // specified channel does not exists
  133.  
  134. #pragma option pop /*P_O_Pop*/
  135. #endif // _MSTV_H_
  136.  
  137.  
  138.