- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
i try to use "setconsolemode" to disable ctrl-c usage during elaboration process in a console application.
i can't retrive information or same example of using it unfer CVF.
MSDN is not so clear for me about how to set ENABLE_processed_input (or other property) to "disable".
have you some short examples about it.
thanks
i try to use "setconsolemode" to disable ctrl-c usage during elaboration process in a console application.
i can't retrive information or same example of using it unfer CVF.
MSDN is not so clear for me about how to set ENABLE_processed_input (or other property) to "disable".
have you some short examples about it.
thanks
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't used SetConsoleMode, but, having skimmed through documentation, I think it should be
hConsole = GetStdHandle(STD_INPUT_HANDLE)
bSt= GetConsoleMode(hConsole, LOC(iMode))
iMode = IAND(iMode, NOT(ENABLE_PROCESSED_INPUT))
bSt = SetConsoleMode(hConsole, iMode)
Also, take a look at SetConsoleCtrlHandler.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jugoslav,
it works.
cecio
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page