Not really as I dont do much of this type of stuff either.

You have variables that are not efined. Always use Option Explicit


hXorRgn and hAndRgn