[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...> - 2005-03-05 04:43:07
|
Bugs item #1075751, was opened at 2004-11-30 14:38 Message generated for change (Settings changed) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1075751&group_id=78018 Category: win32 Group: None >Status: Closed >Resolution: Fixed 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) ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-03-05 15:43 Message: Logged In: YES user_id=14198 Checking in win32apimodule.cpp; new revision: 1.47; previous revision: 1.46 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1075751&group_id=78018 |