Forum: Win32/Win64 API (native code)
Delphi
by _jaromir_,
22. Jul 2008
type injt = packed record
PushCommand: Byte; // 0x68
PushEIP: DWORD; // Old EIP value from context to return to
PushFd: Byte; // 0x9c
PushAd: Byte; //0x60
PushCommand2: Byte; // 0x68
PushDLLName: DWORD; // address of LibraryName
Call: Word; // 15ff
CallAddr: DWORD; //LoadLibraryA address
PopAd: Byte; // 0x61
Forum: Win32/Win64 API (native code)
Delphi
by _jaromir_,
22. Jul 2008
Hallo Brechi,
Even after change still same result and crash target process. I updated the code entirely and it still doing this! :pale: :wall: I will post updated code using packed record of assembly.
Forum: Win32/Win64 API (native code)
Delphi
by _jaromir_,
22. Jul 2008
Nicodex
I understand this and you are right but I have to know why the example in c is not working in delphi? I do not care about reliability as it is for my code porting knowledge, not for use in applications for users. I just want to make it work as the c example, any help please? I believe the loadDll part is problem maybe, everything else seems ok from my view.
Forum: Win32/Win64 API (native code)
Delphi
by _jaromir_,
22. Jul 2008
Hallo,
I need to port the following code to delphi 7. So far it constantly crashes the target process, what do I need to do to fix? Please help.
Original code is here:
Here is my code but it is broken.
function OpenThread(dwDesiredAccess: DWORD; bInheritHandle: BOOL; dwThreadId: DWORD): DWORD; stdcall;