术语 | writeconsoleoutputattribute |
释义 | WriteConsoleOutputAttribute 语法: C++ BOOL WINAPI WriteConsoleOutputAttribute( __in HANDLE hConsoleOutput, __in const WORD *lpAttribute, __in DWORD nLength, __in COORD dwWriteCoord, __out LPDWORD lpNumberOfAttrsWritten ); WriteConsoleOutputAttribute功能 拷贝数量的字符属性的控制台屏幕缓冲区,开始在指定的地点连续细胞。 参数 hConsoleOutput [in] 句柄到控制台屏幕缓冲区。句柄必须有GENERIC_WRITE访问权限。有关更多信息,参见控制台缓冲区安全和访问权限。 lpAttribute [in] 这些属性时要使用书面形式向控制台屏幕缓冲区。有关更多信息,请参见字符属性。 nLength [in] 在屏幕缓冲性质的属性将复制的单元格数目。总必须小于64K的。 dwWriteCoord [in] 一个坐标结构 指定字符的坐标在控制台屏幕缓冲区,以其中的属性将被写入第一个单元格。 lpNumberOfAttrsWritten [out] 一个变量,它接收属性实际写入到控制台屏幕缓冲区数的指针。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 如果属性的数量要写入扩展,属性写入到下一行超出了指定的行在控制台屏幕缓冲区结束。如果属性的数量要写入扩展,属性被写入到控制台的屏幕缓冲区结束超出控制台屏幕缓冲区结束。 在写入位置的字符值不会改变。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWincon.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 控制台函数 COORD 低级别控制台输出函数 ReadConsoleOutput ReadConsoleOutputAttribute ReadConsoleOutputCharacter WriteConsoleOutput WriteConsoleOutputCharacter 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==WriteConsoleOutputAttribute Function Copies a number of character attributes to consecutive cells of a console screen buffer, beginning at a specified location. Syntax C++ BOOL WINAPI WriteConsoleOutputAttribute( __in HANDLE hConsoleOutput, __in const WORD *lpAttribute, __in DWORD nLength, __in COORD dwWriteCoord, __out LPDWORD lpNumberOfAttrsWritten ); Parameters hConsoleOutput [in] A handle to the console screen buffer. The handle must have the GENERIC_WRITE access right. For more information, see Console Buffer Security and Access Rights . lpAttribute [in] The attributes to be used when writing to the console screen buffer. For more information, see Character Attributes . nLength [in] The number of screen buffer character cells to which the attributes will be copied. The total must be less than 64K. dwWriteCoord [in] A COORD structure that specifies the character coordinates of the first cell in the console screen buffer to which the attributes will be written. lpNumberOfAttrsWritten [out] A pointer to a variable that receives the number of attributes actually written to the console screen buffer. 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 written to extends beyond the end of the specified row in the console screen buffer, attributes are written to the next row. If the number of attributes to be written to extends beyond the end of the console screen buffer, the attributes are written up to the end of the console screen buffer. The character values at the positions written to are not changed. 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 ReadConsoleOutputAttribute ReadConsoleOutputCharacter WriteConsoleOutput WriteConsoleOutputCharacter Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms687407(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。