IOCTL_CONSOLE_SETCONTROLCHANDLER

This I/O control code (IOCTL) allows a console application to be aborted using the keyboard command CRTL+C. The DeviceIoControl function calls this IOCTL.

Parameters

  • hDevice
    [in] Set to the handle of the device.
  • dwIoControlCode
    [in] Set to IOCTL_CONSOLE_SETCONTROLCHANDLER.
  • lpInBuf
    [in] Set to NULL.
  • nInBufSize
    [in] Set to zero.

Return Values

TRUE indicates success. FALSE indicates failure.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Console.h.

See Also

DeviceIoControl

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.