please dont rip this site Prev Next

GetNumberOfConsoleInputEvents info  Overview  Group

The GetNumberOfConsoleInputEvents function retrieves the number of unread input records in the console’s input buffer.

BOOL GetNumberOfConsoleInputEvents(

    HANDLE hConsoleInput,

// handle of console input buffer

    LPDWORD lpcNumberOfEvents 

// address for number of events

   );

Parameters

hConsoleInput
Identifies the console input buffer. The handle must have GENERIC_READ access.
lpcNumberOfEvents
Points to a 32-bit variable that receives the number of unread input records in the console’s input buffer.

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 GetNumberOfConsoleInputEvents function reports the total number of unread input records in the input buffer, including keyboard, mouse, and window-resizing input records. Processes using the ReadFile or ReadConsole function can only read keyboard input. Processes using the ReadConsoleInput function can read all types of input records.

A process can specify a console input buffer handle in one of the wait functions to determine when there is unread console input. When the input buffer is not empty, the state of a console input buffer handle is signaled.

To read input records from a console input buffer without affecting the number of unread records, use the PeekConsoleInput function. To discard all unread records in a console’s input buffer, use the FlushConsoleInputBuffer function.

See Also

FlushConsoleInputBuffer, PeekConsoleInput, ReadConsole, ReadConsoleInput, ReadFile 


file: /Techref/os/win/api/win32/func/src/f35_17.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/10 03:09,
TOP NEW HELP FIND: 
3.137.184.33:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://linistepper.com/Techref/os/win/api/win32/func/src/f35_17.htm"> GetNumberOfConsoleInputEvents</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?