KodeZwerg and 440bx, thanks for your suggestions!
I replaced the commads:
GetWindowLong -> GetWindowLongPrt
SetWindowLong -> SetWindowLongPrt
It seems that everything works perfectly, the parameters were basically the same.
I see in the microsoft.com develiopment page there are a lot of variants
GetWindowLongPtrA function / GetWindowLongPtrW function
SetWindowLongPtrA function / SetWindowLongPtrW function
I think these 2 types are because of ANSI / Unicode.
But I can use the simple GetWindowLongPtr too. So I use now the simple GetWindowLongPtr / SetWindowLongPtr.