1
Vývoj / Re:Python load DLL ako zavolat funkciu cez entry point?
« kdy: 02. 03. 2021, 18:37:22 »
Něco jako toto. Přečti si dokumentaci.
Kód: [Vybrat]
dll = cdll.LoadLibrary(path)
Initialise = getattr(dll, "?Initialise@@YAHHEPA_W@Z")
Initialise.argtypes = [c_uint, c_uint, c_wchar_p]
Initialise.restype = c_int
..
Initialise(enableLogging, oemID, registrationKeyFilePathAndName)