Other versions of this page are also available for the following:
This I/O control code (IOCTL) allows a console application to stop its current process by using the keyboard command CRTL+C. The
DeviceIoControl function calls this IOCTL.
This replaces the deprecated IOCTL_CONSOLE_SETCONTROLCHANDLER.
[in] Set to the handle of the device.
[in] Set to IOCTL_CONSOLE_SETCONTROLCHANDLER.
[in] Set to the handle for the console's current process.
[in] Set to
Calling this the first time will turn enable the console to stop the indicated process by using CTRL+C. Passing the same process in on a second call will disable the console from stopping the process on CTRL+C.
TRUE indicates success. FALSE indicates failure.
Header console.h Windows Embedded CE Windows CE 3.0 and later