Removed ctypes and privilege check for Windows