PREFER.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /**************************************************************************
- *
- * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
- * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- * PURPOSE.
- *
- * Copyright (C) 1993 - 1997 Microsoft Corporation. All Rights Reserved.
- *
- **************************************************************************/
- /*
- * prefer.h
- */
- /* MIDIMON.INI entries.
- */
- #define INI_FILENAME (LPSTR) "MIDIMON.INI"
- #define INI_DISPLAYWINDOW (LPSTR) "Display Window"
- #define INI_X (LPSTR) "x"
- #define INI_Y (LPSTR) "y"
- #define INI_W (LPSTR) "w"
- #define INI_H (LPSTR) "h"
- /* Default values for preference variables.
- */
- #define DEF_X 20
- #define DEF_Y 20
- #define DEF_W 481
- #define DEF_H 256
- /* Data structure used to specify user preferences.
- */
- typedef struct preferences_tag
- {
- int iInitialX;
- int iInitialY;
- int iInitialW;
- int iInitialH;
- DWORD dwInputBufferSize;
- DWORD dwDisplayBufferSize;
- int wDisplayFormat;
- } PREFERENCES;
- typedef PREFERENCES FAR *LPPREFERENCES;
- /* Function prototypes
- */
- void getPreferences(LPPREFERENCES);
- void setPreferences(LPPREFERENCES);