[pywin32-bugs] [ pywin32-Bugs-1075751 ] SetConsoleCtrlHandler rejects ctrlHandler=None
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-11-30 03:38:05
|
Bugs item #1075751, was opened at 2004-11-30 14:38 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1075751&group_id=78018 Category: win32 Group: None Status: Open Resolution: None Priority: 5 Submitted By: Luke (luked) Assigned to: Nobody/Anonymous (nobody) Summary: SetConsoleCtrlHandler rejects ctrlHandler=None Initial Comment: The SetConsoleCtrlHandler function in the win32 api can be used to enable or disable ignoring of CTRL-C signals. This is done by passing NULL as the first parameter, as per the MSDN docs: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setconsolectrlhandler.asp Unfortunately this doesn't work with win32api.SetConsoleCtrlHandler [pywin32 build 203]. It rejects "None" as the first parameter. The generated exception is: TypeError: First argument must be callable (got NoneType) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1075751&group_id=78018 |