<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>On Thu, 26 Mar 2015 15:15:34 +0100, Stefan Dösinger wrote:<br><div>> Am 2015-03-26 um 13:46 schrieb Hugh McMaster:<br>> > The PHANDLER_ROUTINE is a pointer to the function handler. MSDN's <br>> > own example [1] on installing a Ctrl handler uses a cast.<br>> > <br>> > Otherwise, what would you suggest?<br>> If the function signature (including calling convention) matches the<br>> one SetConsoleCtrlHandler expects the compiler should accept it<br>> without a cast and without a warning.<br>> <br>> In your patch you should probably use WINAPI for console_ctrl_handler.<br><br>The compiler accepted "BOOL WINAPI console_ctrl_handler" without warnings.<br><br>Thanks. I'll send a new patch.<br></div>                                        </div></body>
</html>