The function I'm trying to call is:
void FormatError (HRESULT hrError,PCHAR pszText);
from a custom dll using windll.
c_p = c_char_p()
windll.thedll.FormatError(errcode, c_p)
Results in:
ValueError: Procedure probably called with not enough arguments (4 bytes missing)
Using cdll instead increases the counter, which is not in bytes, to 12. errcode above is errercode returned from another function from the same DLL. How to get the right to call?
user171529
source
share