Hi, i'm trying to port some C code into Pascal , i did some part .
Code:
struct
DLL{
char* Dllname;
dword imagebase;
dword size;
dword vAddr;
};
struct
API{
char* ApiName;
DLL* libName;
dword args;
dword addr;
int (*Start_func)(Thread*,dword*);
};
so i ported it in this way :
Delphi-Quellcode:
type
PDll = ^TDll;
TDLL =
record
Dllname: Pchar;
imagebase: dword;
size: dword;
vAddr: dword;
end;
API =
record
Apiname: PChar;
libName: PDLL;
args: dword;
addr: dword;
//*** But the problem is here
int
(*Start_func)(Thread*,dword*);
//*** how it can be done ?
How this can be done inside a Structure
Code:
int (*Start_func)(Thread*,dword*);
many thanks