for (x = 0; x < count; x++)
args[x] = va_arg(list, void *);
for (x = count -1; x >= 0; x--)
{
int temp = x * 4;
__asm
{
mov eax, dword ptr args
add eax, temp
push [eax]
}
}
__asm
{
call lpProcAddress
mov lpResult,eax
}