home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / doubplay / doubplay.h < prev    next >
Text File  |  1999-05-11  |  2KB  |  80 lines

  1. /*************************************************************************
  2.  * File Name    :  doubplay.h
  3.  *
  4.  * Description  :  This file contains the definitions used by the Double
  5.  *                 Buffering Sample Program.
  6.  *
  7.  * Concepts     :  n/a
  8.  *
  9.  * MMPM/2 API's :  n/a
  10.  *
  11.  * Required
  12.  *    Files     :  None.
  13.  *
  14.  *
  15.  * Copyright (C) IBM 1993
  16.  *************************************************************************/
  17.  
  18. #define ID_MESSAGE_BOX                1
  19. #define ID_SAMPLE                   100
  20. #define ID_PLAY                     101
  21. #define ID_END                      102
  22.  
  23. #define ID_ICON                     105
  24. #define ID_SUBTABLE_MESSAGEBOX      109
  25.  
  26. #define ID_BMP_PLAY0          1020
  27. #define ID_BMP_PLAY1          1021
  28. #define ID_BMP_PLAY2          1022
  29. #define ID_BMP_PLAY3          1023
  30. #define ID_BMP_PLAY4          1024
  31.  
  32. #define ID_BMP_STOP0          1040
  33.  
  34. #define ID_DOUBPLAY_DIALOG_BOX   1043
  35.  
  36. #define MAXSIZE            1048
  37. #define MAXBUFF            40
  38. #define STRING_SIZE        356
  39.  
  40.  
  41. /* Id's for the Resources defined in the doubplay.rc file */
  42. #define    IDS_MAIN_WINDOW_TITLE                1
  43. #define    IDS_ERROR_TITLE                      5
  44. #define    IDS_WAVE_FILE                        6
  45. #define    IDS_CANNOT_GET_MEMORY                7
  46. #define    IDS_CANT_PROCESS_MESSAGE             8
  47. #define    IDS_CANT_OPEN_WAVE                   9
  48. #define    IDS_DEFAULT_SIZE                    10
  49. #define    IDS_CANT_CREATE_SEMAPHORE           11
  50.  
  51.  
  52. /* New Playlist commands */
  53. #define     SEMPOST_OPERATION       10
  54.  
  55.  
  56.  
  57. /* State of the application i.e. if it is playing or stopped */
  58. #define STATE_IS_PLAYING 1
  59. #define STATE_IS_STOP 2
  60.  
  61.  
  62.  
  63. /*
  64.  * MMPM/2 Playlist strucuture which contains the commands,
  65.  * and the operands.
  66.  */
  67. typedef struct pls
  68. {
  69.    ULONG ulCommand;
  70.    ULONG ulOperandOne;
  71.    ULONG ulOperandTwo;
  72.    ULONG ulOperandThree;
  73. } PLAY_LIST_STRUCTURE_T;
  74.  
  75. USHORT ShowAMessage( USHORT usTitleId,
  76.                      USHORT usTextId,
  77.                      ULONG  ulMessageBoxStyle,
  78.                      BOOL   fMCIError);
  79.  
  80.