术语 | getconsolescreenbufferinfo |
释义 | GetConsoleScreenBufferInfo 语法: C++ BOOL WINAPI GetConsoleScreenBufferInfo( __in HANDLE hConsoleOutput, __out PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo ); GetConsoleScreenBufferInfo功能 信息检索指定的控制台屏幕缓冲区。 参数 hConsoleOutput [in] 句柄到控制台屏幕缓冲区。句柄必须有GENERIC_READ访问的权利。有关更多信息,参见控制台缓冲区安全和访问权限。 lpConsoleScreenBufferInfo [out] 一个 CONSOLE_SCREEN_BUFFER_INFO结构得到控制台屏幕缓冲区信息的指针。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 在CONSOLE_SCREEN_BUFFER_INFO结构srWindow成员返回的矩形可以修改,然后传递给SetConsoleWindowInfo功能滚动的控制台窗口的屏幕缓冲区,以改变窗口,或两者的大小。 所有座标CONSOLE_SCREEN_BUFFER_INFO结构在性质上产生细胞坐标,其中原产地(0,0),在控制台屏幕缓冲区左上角的。 实例 举例说,一看到滚动屏幕缓冲区的窗口。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWincon.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 控制台函数 CONSOLE_SCREEN_BUFFER_INFO GetLargestConsoleWindowSize SetConsoleCursorPosition SetConsoleScreenBufferSize SetConsoleWindowInfo 窗口和屏幕缓冲区大小 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==GetConsoleScreenBufferInfo Function Retrieves information about the specified console screen buffer. Syntax C++ BOOL WINAPI GetConsoleScreenBufferInfo( __in HANDLE hConsoleOutput, __out PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo ); 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 . lpConsoleScreenBufferInfo [out] A pointer to a CONSOLE_SCREEN_BUFFER_INFO structure that receives the console screen buffer information. 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 The rectangle returned in the srWindow member of the CONSOLE_SCREEN_BUFFER_INFO structure can be modified and then passed to the SetConsoleWindowInfo function to scroll the console screen buffer in the window, to change the size of the window, or both. All coordinates returned in the CONSOLE_SCREEN_BUFFER_INFO structure are in character-cell coordinates, where the origin (0, 0) is at the upper-left corner of the console screen buffer. Examples For an example, see Scrolling a Screen Buffer's Window . Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWincon.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also Console Functions CONSOLE_SCREEN_BUFFER_INFO GetLargestConsoleWindowSize SetConsoleCursorPosition SetConsoleScreenBufferSize SetConsoleWindowInfo Window and Screen Buffer Size Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms683171(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。