The output buffer is always AnsiChar
You've right, fixed:
Delphi-Quellcode:
function DIE_scanA(pszFileName, pszOutBuffer: PAnsiChar; nOutBufferSize: Cardinal; nFlags: Cardinal): Integer; stdcall;
external 'diedll.dll' name '_DIE_scanA@16';
function DIE_scanW(pszFileName: PWideChar; pszOutBuffer: PAnsiChar; nOutBufferSize: Cardinal; nFlags: Cardinal): Integer; stdcall;
external 'diedll.dll' name '_DIE_scanW@16';
function DIE_scanExA(pszFileName, pszOutBuffer: PAnsiChar; nOutBufferSize: Cardinal; nFlags: Cardinal; pszDataBase: PAnsiChar): Integer; stdcall;
external 'diedll.dll' name '_DIE_scanExA@20';
function DIE_scanExW(pszFileName: PWideChar; pszOutBuffer: PAnsiChar; nOutBufferSize: Cardinal; nFlags: Cardinal; pwszDataBase: PWideChar): Integer; stdcall;
external 'diedll.dll' name '_DIE_scanExW@20';
function DIE_versionA: PAnsiChar; stdcall;
external 'diedll.dll' name '_DIE_versionA@0';
function DIE_versionW: PWideChar; stdcall;
external 'diedll.dll' name '_DIE_versionW@0';
Have you looked on
SDK? There is folder with signatures, if function doesn't see it, it returns string that nothing found (and no exceptions), this may be
DLL internal
exception?