The function i\'m trying to call is:
void FormatError (HRESULT hrError,PCHAR pszText);
from a custom dll using windll.
c_p
Actually I think you want to use FormatError as provided by ctypes
http://docs.python.org/library/ctypes.html#ctypes.FormatError
ctypes.FormatError([code])
Windows only: Returns a textual description of the error code. If no error code is specified, the last error code is used by calling the Windows api function GetLastError.