home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / audio / midimon / prefer.h < prev    next >
Text File  |  1997-10-05  |  1KB  |  53 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *  Copyright (C) 1993 - 1997  Microsoft Corporation.  All Rights Reserved.
  9.  * 
  10.  **************************************************************************/
  11.  
  12. /*
  13.  *  prefer.h
  14.  */
  15.  
  16.  
  17. /* MIDIMON.INI entries.
  18.  */
  19. #define INI_FILENAME        (LPSTR) "MIDIMON.INI"
  20. #define INI_DISPLAYWINDOW   (LPSTR) "Display Window"
  21. #define INI_X               (LPSTR) "x"
  22. #define INI_Y               (LPSTR) "y"
  23. #define INI_W               (LPSTR) "w"
  24. #define INI_H               (LPSTR) "h"
  25.  
  26. /* Default values for preference variables.
  27.  */
  28. #define DEF_X               20
  29. #define DEF_Y               20
  30. #define DEF_W               481
  31. #define DEF_H               256
  32.  
  33.  
  34. /* Data structure used to specify user preferences.
  35.  */
  36. typedef struct preferences_tag
  37. {
  38.     int iInitialX;
  39.     int iInitialY;
  40.     int iInitialW;
  41.     int iInitialH;
  42.     DWORD dwInputBufferSize;
  43.     DWORD dwDisplayBufferSize;
  44.     int wDisplayFormat;
  45. } PREFERENCES;
  46. typedef PREFERENCES FAR *LPPREFERENCES;
  47.  
  48.  
  49. /* Function prototypes
  50.  */
  51. void getPreferences(LPPREFERENCES);
  52. void setPreferences(LPPREFERENCES);
  53.