import ctypes lib = ctypes.cdll.LoadLibrary('example.dll') check = lib.check check.argtypes = [ctypes.c_char_p] check.restype = ctypes.c_char_p