<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 Thursday, 17 Dec 2015 18:55:23 +0800, Dmitry Timoshkov wrote:
> Hugh McMaster wrote:

>> -    INT start,end;
>> +    unsigned short start, end;

> This can't work.

In this case it does - but it is a technicality.

MSDN says typedef unsigned short WORD; but I should have used unsigned int here, as we cast to WPARAM / UINT_PTR.
                                          </div></body>
</html>