| Код | template <DWORD h, DWORD hash> inline LPVOID pushargEx() { typedef LPVOID (WINAPI *newfunc)(); newfunc func = (newfunc)GetProcAddressEx(h, hash); return func(); }
template <DWORD h, DWORD hash, class A> inline LPVOID pushargEx(A a1) { typedef LPVOID (WINAPI *newfunc)(A); newfunc func = (newfunc)GetProcAddressEx(h, hash); return func(a1); }
template <DWORD h, DWORD hash, class A, class B> inline LPVOID pushargEx(A a1, B a2) { typedef LPVOID (WINAPI *newfunc)(A, B); newfunc func = (newfunc)GetProcAddressEx(h, hash); return func(a1,a2); }
|
Как это можно реализовать в асме? |