flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Vasilev Vjacheslav 05 Jun 2006, 07:27
Code: proc HookAPICall uses esi edi psDllHook struct sFunctionHook hFuncName dd ? hHookFunc dd ? ordinal dd ? OrignalFunc dd ? iDefault db ? ends struct sDllHook DllName dd ? sHook sFunctionHook ends |
|||
![]() |
|
StakFallT 08 Jun 2006, 03:44
Well the part that concerned me is the proc line I noticed you have it in there as
Code: proc HookAPICall uses esi edi psDllHook Couple of questions come to mind. Problem 1: This statement would imply psDllHook is still declared as a DWORD size wouldn't it? Problem 2:Even if we managed to get it set to the size of sDllHook, I think the ptr Code:
HookAPICall proc uses esi edi psDllHook:ptr sDllHook
throws a monkey wrench into the mix as it's not just a straight "this object is of size <blahblah>" it becomes a "this object is pointed to this object whose size is already declared elsewhere". Which is why when I shown my attempt, I was careful to throw in the word "attempt" because I'm almost certain the one I made isn't correct.. :/ -- StakFallT |
|||
![]() |
|
madmatt 08 Jun 2006, 06:43
Code: proc HookAPICall uses esi edi psDllHook struct sFunctionHook hFuncName dd ? hHookFunc dd ? ordinal dd ? OrignalFunc dd ? iDefault db ? ends struct sDllHook DllName dd ? sHook sFunctionHook ends get to your data using this method: Code: ;load a register with a pointer to the sDllHook structure data mov ecx, [psDllHook] ;access data element within this structure mov eax, [ecx + sDllHook.DllName] - or - mov eax, [ecx + sDllHook.sHook.ordinal] |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.