Function parameter is the problem:

Qt Code:
  1. function GetAdminSID: String;
To copy to clipboard, switch view to plain text mode 

becouse I changed:

Qt Code:
  1. function GetAdminSID: PChar;
To copy to clipboard, switch view to plain text mode 

Everything works fine.

but unfortunately, this DLL is already in use. So I would not change. This version should I use:

Qt Code:
  1. function GetAdminSID: String;
To copy to clipboard, switch view to plain text mode 

Is idea someones of the declaration I how to change?

Qt Code:
  1. extern "C" { typedef char*(__stdcall * PGetAdminSID)(); }
To copy to clipboard, switch view to plain text mode 

Thanks!
Hi!