网站首页  词典首页

请输入您要查询的函数:

 

术语 getmonitorinfo
释义 GetMonitorInfo
语法:
BOOL GetMonitorInfo(
__in HMONITOR hMonitor,
__out LPMONITORINFO lpmi
);
GetMonitorInfo功能
该GetMonitorInfo函数检索了有关资料显示屏。
参数
hMonitor [in]
句柄的利息显示屏。
lpmi [out]
一个 MONITORINFO或MONITORINFOEX结构,收到有关指定显示屏信息的指针。
您必须设置结构的cbSize成员为sizeof(MONITORINFO)或sizeof的GetMonitorInfo之前调用函数(MONITORINFOEX)。这样做可以让函数确定的结构类型传递给它。
该MONITORINFOEX结构是一个MONITORINFO结构的超集。它增加了一个成员:一个字符串,其中一个显示屏的名称。大多数应用程序没有一个显示屏名称的使用,因此可以节省使用MONITORINFO结构的一些字节。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
实例
有关示例,请参见定位在一个多显示设置对象。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
Unicode和ANSI namesGetMonitorInfoW(Unicode)和GetMonitorInfoA(ANSI)的
参见
多显示监视器概述
多显示监视器功能
MONITORINFO
MONITORINFOEX
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetMonitorInfo Function
The GetMonitorInfo function retrieves information about a display monitor.
Syntax
BOOL GetMonitorInfo(
__in HMONITOR hMonitor,
__out LPMONITORINFO lpmi
);
Parameters
hMonitor [in]
A handle to the display monitor of interest.
lpmi [out]
A pointer to a MONITORINFO or MONITORINFOEX structure that receives information about the specified display monitor.
You must set the cbSize member of the structure to sizeof(MONITORINFO) or sizeof(MONITORINFOEX) before calling the GetMonitorInfo function. Doing so lets the function determine the type of structure you are passing to it.
The MONITORINFOEX structure is a superset of the MONITORINFO structure. It has one additional member: a string that contains a name for the display monitor. Most applications have no use for a display monitor name, and so can save some bytes by using a MONITORINFO structure.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Examples
For an example, see Positioning Objects on a Multiple Display Setup .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
Unicode and ANSI namesGetMonitorInfoW (Unicode) and GetMonitorInfoA (ANSI)
See Also
Multiple Display Monitors Overview
Multiple Display Monitors Functions
MONITORINFO
MONITORINFOEX
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144901(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:29:14