> if (This->presentParms.Windowed == TRUE) You shouldn't compare BOOLs against TRUE. Also, a comment in the mail as to why the cursor position needs to be corrected would be nice. Ie, cursor position are in screen space, not window space.