Remove any dependencies on windows by using ctypes

Removes the need for pywin32, Tkinter or similar.

Add some more test cases as well.

Tested on win7 x64 with 32bit python (2.6, 2.7, 3.3).