There's seem to be many "errors" in the code, but a logical error is within CreateThread and your #define Points4
The 2nd parameter of CreateThread is stack space. Try CreateThread(0,4096...);
++ #define Points4 0x0000018g
g is not hexadecimal
You also keep re-defining dwPoints (doesn't make sense), but it looks like you were trying to do base+offset+offset+offset...
The rest of the mistakes should be up to you to fix.