home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / bpcpri.h < prev    next >
Text File  |  1998-04-25  |  3KB  |  78 lines

  1. ////////////////////////////////////////////////////////////////////
  2. //
  3. // BPCPRI.H
  4. //
  5. // common bpc tuner priority definitions
  6. //
  7. // Copyright (c) 1997 Microsoft Corp.  All Rights Reserved.
  8. //
  9. ////////////////////////////////////////////////////////////////////
  10.  
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif
  14.  
  15. #ifndef BPCPRI_H
  16. #define BPCPRI_H
  17.  
  18. #include <limits.h>
  19.  
  20. typedef enum BPC_PRIORITY {
  21.     BPCPRI_MAX_PRI = LONG_MAX,
  22.  
  23.     // since the current owner wins a tie, if you really need
  24.     // exclusive access use max pri and nobody can preempt you.
  25.     BPCPRI_EXCLUSIVE = BPCPRI_MAX_PRI,
  26.  
  27.     // get ppv details for making a purchase with user permission to
  28.     // interrupt everything
  29.     BPCPRI_PPV_INT_ALL          = 11000,
  30.  
  31.     // viewing after the user has confirmed that they wish to interrupt a
  32.     // recording
  33.     BPCPRI_VIEW_INT_RECORD      = 10000,
  34.  
  35.     // normal recording.  this is higher then viewing so that someone
  36.     // walking up to the tv who is unaware that a recording is in
  37.     // progress will get a notification before they interrupt the recording
  38.     // and so that a scheduled recording will start and run if a user
  39.     // has gone away leaving the tv viewer running
  40.     BPCPRI_RECORD               = 9000,
  41.  
  42.     // attempt to get ppv details for making a purchase with user
  43.     // permission to interrupt viewing but not recording
  44.     BPCPRI_PPV_DETAILS_INT_VIEW = 8000,
  45.  
  46.     //normal tv viewing
  47.     BPCPRI_VIEW                 = 7000,
  48.  
  49.     // attempt to get ppv details for a purchase but don't
  50.     // interrupting viewing or recording
  51.     BPCPRI_PPV_DETAILS          = 6000,
  52.  
  53.     // download program guide database information
  54.     BPCPRI_EPG_LOADER           = 5000,
  55.  
  56.     // msbdn data reception (webcast, etc.)
  57.     BPCPRI_DATA_RECV            = 4000,
  58.  
  59.     // msbdn announcement listener
  60.     BPCPRI_ANNOUNCE             = 3000,
  61.  
  62.     // leave tv viewing with power off.  apps should go to this priority
  63.     // when they receive notification that their monitor is
  64.     // powered off.  this allows the best instant on response when
  65.     // no background downloads are occurring but allows data downloads and
  66.     // epg downloads to interrupt viewing
  67.     BPCPRI_POWER_OFF            = 2000,
  68.  
  69.     // idle ocx priority when no input device selected
  70.     BPCPRI_IDLE                 = 1000,
  71.  
  72.     BPCPRI_NONE                 = 0,
  73.     BPCPRI_MIN                  = BPCPRI_NONE,
  74. } BPC_PRIORITY;
  75.  
  76. #endif
  77. // end of file - bpcpri.h
  78.