variable arguments list hook

c++ / delphi package - dll injection and api hooking
Post Reply
pinya
Posts: 18
Joined: Tue Feb 05, 2013 4:39 am

variable arguments list hook

Post by pinya »

Hello,

I want to hook NdrClientCall2, but it has variable argument list.

CLIENT_CALL_RETURN RPC_VAR_ENTRY NdrClientCall2(
_In_ PMIDL_STUB_DESC pStubDescriptor,
_In_ PFORMAT_STRING pFormat,
_Inout_ ...
);


Is it possible?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: variable arguments list hook

Post by madshi »

I don't know how the variable argument list is handled at assembler level. You may have to disasm the way the parameter stuff works and then reproduce it with your own code.
Post Reply