SetWindowLongPtrW -> SetWindowLongW
Change registry API to support older windows versions