is it possible to use function pointer like this?

---sorry for my bad english---

i want to use like this

(DWORD(__stdcall*)(DWORD))0x12345678(10);

and i don't want to use like this

1
2
3
DWORD(__stdcall* function)(DWORD) = (DWORD(__stdcall*)(DWORD))0x12345678;

function(10);


but i have no idea how to do


Last edited on
You just need another pair of parentheses:

((DWORD(__stdcall*)(DWORD))0x12345678)(10);
Topic archived. No new replies allowed.