Hi Van,
ECInvoke works perfectly well keeping always the stack 16-byte aligned and accepting all type of parameters (which are converted to QWORDS if they are not), but it DOES NOT COPY the 4 parameters into the stack shadow space.
The ECInvoke macro works under the WIN64 specifications, where the invoking code is not responsible for copying the parameters into the stack shadow space, in fact it should not copy them.
Regards,
Ramon