网站首页  词典首页

请输入您要查询的函数:

 

术语 readconsoleoutputattribute
释义 ReadConsoleOutputAttribute
语法:
C++
BOOL WINAPI ReadConsoleOutputAttribute(
__in HANDLE hConsoleOutput,
__out LPWORD lpAttribute,
__in DWORD nLength,
__in COORD dwReadCoord,
__out LPDWORD lpNumberOfAttrsRead
);
ReadConsoleOutputAttribute功能
副本的指定数目的字符属性从一个控制台屏幕缓冲区,开始在指定的地点连续细胞。
参数
hConsoleOutput [in]
句柄到控制台屏幕缓冲区。句柄必须有GENERIC_READ访问的权利。有关更多信息,参见控制台缓冲区安全和访问权限。
lpAttribute [out]
阿一个缓冲区,它接收的属性正在使用的控制台屏幕缓冲区指针。所需的总规模将小于64K的。
有关更多信息,请参见字符属性。
nLength [in]
屏幕缓冲区的字符细胞的数目中,读取。缓冲区的大小指出的lpAttribute参数应nLength * sizeof(字)。
dwReadCoord [in]
的坐标在控制台屏幕缓冲区中,读取的字符,第一个单元格。该坐标结构X成员是列,和Y成员行。
lpNumberOfAttrsRead [out]
一个变量,它接收的数量属性的实际读取的指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果属性的数量,可以从扩展,属性是从下一行读取超出指定的屏幕缓冲区的行结束。如果属性的数量,可以从超出了控制台屏幕缓冲区结束,属性直至控制台屏幕缓冲区年底被读取。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
控制台函数
COORD
低级别控制台输出函数
ReadConsoleOutput
ReadConsoleOutputCharacter
WriteConsoleOutput
WriteConsoleOutputAttribute
WriteConsoleOutputCharacter
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==ReadConsoleOutputAttribute Function
Copies a specified number of character attributes from consecutive cells of a console screen buffer, beginning at a specified location.
Syntax
C++
BOOL WINAPI ReadConsoleOutputAttribute(
__in HANDLE hConsoleOutput,
__out LPWORD lpAttribute,
__in DWORD nLength,
__in COORD dwReadCoord,
__out LPDWORD lpNumberOfAttrsRead
);
Parameters
hConsoleOutput [in]
A handle to the console screen buffer. The handle must have the GENERIC_READ access right. For more information, see Console Buffer Security and Access Rights .
lpAttribute [out]
A pointer to a buffer that receives the attributes being used by the console screen buffer. The total size required will be less than 64K.
For more information, see Character Attributes .
nLength [in]
The number of screen buffer character cells from which to read. The size of the buffer pointed to by the lpAttribute parameter should be nLength * sizeof(WORD).
dwReadCoord [in]
The coordinates of the first cell in the console screen buffer from which to read, in characters. The X member of the COORD structure is the column, and the Y member is the row.
lpNumberOfAttrsRead [out]
A pointer to a variable that receives the number of attributes actually read.
Return Value
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
If the number of attributes to be read from extends beyond the end of the specified screen buffer row, attributes are read from the next row. If the number of attributes to be read from extends beyond the end of the console screen buffer, attributes up to the end of the console screen buffer are read.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Console Functions
COORD
Low-Level Console Output Functions
ReadConsoleOutput
ReadConsoleOutputCharacter
WriteConsoleOutput
WriteConsoleOutputAttribute
WriteConsoleOutputCharacter
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684968(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:22:46