Added ctypes Windows privilege detection