home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / dssenum.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  67 lines

  1. //
  2. // Copyright (C) Microsoft Corporation, 1997.  All rights reserved.
  3. //
  4.  
  5. #ifndef DSSENUM_H
  6. #define DSSENUM_H
  7. // DSSENUM.H
  8.  
  9. // STOCKBPCEVENT enumeration has been removed.  The allowable values
  10. //  of events fired to the CA Server are those defined as constants
  11. //  in the "CAEvent Interface" section of CAODL.H.
  12.  
  13. // Upper edge purchase actions
  14.  
  15.     typedef enum PURCHASEACTION {
  16.         PAGETDETAILS,
  17.         PAPURCHASETOVIEW,
  18.         PAPURCHASETOTAPE,
  19.         PACANCELVIEW,
  20.         PACANCELTAPE,
  21.         PAPREVIEW
  22.     } PURCHASEACTION;
  23.  
  24. // note that the bit mapping used here allows, for DSS, the direct conversion
  25. // of lower edge status into upper edge status.
  26.     typedef enum PURCHASESTATUS {
  27.         PSVIEWTAKEN = 0,
  28.         PSVIEWCANCELLED,
  29.         PSVIEWREPORTED,
  30.         PSPREVIEWTAKEN,
  31.  
  32.         PSVIEWAUTHORIZED,
  33.         PSVIEWPURCHASED,
  34.         PSTAPEPURCHASED,
  35.         PSTAPEAUTHORIZED,
  36.  
  37.         PSTAPETAKEN,
  38.         PSTAPECANCELLED,
  39.         PSTAPEREPORTED,
  40.         PSVIEWAVAILABLE,
  41.  
  42.         PSTAPEAVAILABLE,
  43.         PSREVIEWAVAILABLE
  44.     } PURCHASESTATUS;
  45.  
  46. // Reason values returned in BPCDetails when purchase actions are
  47. //  attempted.
  48.     typedef enum PURCHASEREASON {
  49.         PRSUCCESS = 0,
  50.         PRNOCALLBACK,
  51.         PRNOSUBSCRIBER,
  52.         PRRATING,
  53.         PRSPENDING,
  54.         PRCREDIT,
  55.         PRWRONGCARD,
  56.         PRCARDFULL,
  57.         PRBLOCKED,
  58.         PRBLACKOUT,
  59.         PRTOOLATE,
  60.         PRREDUNDANT,
  61.         PRPPVFAILURE,
  62.         PRBADDATA,
  63.         PRCONTENTION
  64.     } PURCHASEREASON;
  65.  
  66. #endif
  67.