WINCE下使用EnumDisplaySettings获取LCD属性
来源:互联网 发布:gb12348-2008标准数据 编辑:程序博客网 时间:2024/05/20 23:37
来自WINCE的MSDN手册
This function retrieves information about one of the graphics modes for a display device. To retrieve information for all the graphics modes of a display device, make a series of calls to this function.
BOOL EnumDisplaySettings( LPCTSTR lpszDeviceName, DWORD iModeNum, LPDEVMODE lpDevMode);
Parameters
- lpszDeviceName
- [in] Pointer to a null-terminated string that specifies the display device.
This parameter is either NULL or a DISPLAY_DEVICE.DeviceName returned fromEnumDisplayDevices.
A NULL value specifies the current display device on the system that is running the calling thread.
- iModeNum
- [in] Specifies the type of information to retrieve.
This value can be a graphics mode index or one of values shown in the following table.
Value Description ENUM_CURRENT_SETTINGSRetrieve the current settings for the display device.ENUM_REGISTRY_SETTINGSRetrieve the settings for the display devices that are currently stored in the registry.For more information, see Remarks.
- lpDevMode
- [out] Pointer to a DEVMODE structure that will contain the information about the specified graphics mode.
Before calling EnumDisplaySettings, set the dmSize member to
sizeof(DEVMODE)
, and set thedmDriverExtra member to indicate the size, in bytes, of the additional space available to receive private driver data.The EnumDisplaySettings function sets values for the followingDEVMODE members:
- dmBitsPerPel
- dmPelsWidth
- dmPelsHeight
- dmDisplayFlags
- dmDisplayFrequency
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
To get extended error information, call GetLastError.
Remarks
The function fails if iModeNum is greater than the index of the display device's last graphics mode.
You can use iModeNum to enumerate all of a display device's graphics modes.
Graphics mode indexes start at zero.
To obtain information for all of a display device's graphics modes, make a series of calls toEnumDisplaySettings. To do this, setiModeNum to zero for the first call and then incrementiModeNum by one for each subsequent call. Continue calling the function until the return value is zero.
When you call EnumDisplaySettings with iModeNum set to zero, the operating system initializes and caches information about the display device.
When you call EnumDisplaySettings with iModeNum set to a nonzero value, the function returns the information that was cached the last time the function was called withiModeNum set to zero.
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Windows.h.
Link Library: Coredll.lib.
See Also
ChangeDisplaySettingsEx | CreateDC | DEVMODE | DISPLAY_DEVICE | EnumDisplayDevices |GDI Functions
© 2005 Microsoft Corporation. All rights reserved.
- WINCE下使用EnumDisplaySettings获取LCD属性
- WinCE下使用Lazarus获取设备名
- WinCE下使用获取设备名
- WinCE下的LCD调试助手
- WinCE下的LCD显示驱动开发
- wince下获取文件属性
- wince下获取文件属性续
- WinCE下 获取本地路径
- wince下使用activesync
- WinCE LCD Rotation
- Wince LCD驱动移植
- wince lcd驱动移植
- wince LCD 学习
- wince的LCD驱动
- 使用SetupApi获取LCD EDID信息
- WinCE下注册表的使用
- WinCE下注册表的使用
- WINCE下使用SQLite数据库
- Python 常识一
- vi一些常见的命令
- Selenium-webdriver系列教程(9)——如何操作select下拉框
- CSS media queries 媒介查询
- 编写高效Android代码避免使用枚举
- WINCE下使用EnumDisplaySettings获取LCD属性
- kinect for XBOX360 在 win7 X64 下的配置说明。
- 文件缓存系统
- skip-external-locking skip-locking参数详解
- 收录几个linux命令
- import cx_Oracle,ImportError: DLL load failed: 找不到指定的模块
- 库存管理-历史库存和收发存系列-俄罗斯库存报表J3RFLVMOBVED1
- 小弟手上有各种类别的毕业设计,可分享给大家
- 计算机IP地址与子网掩码如何进行AND运算