long function_C(PULONG pulsize, PULONG pulcount);
int function_Managed(unsigned% size, unsigned% count)
{
unsigned long lsize = size, lcount = count;
long const ret = function_C(&lsize, &lcount);
size = lsize, count = lcount;
return ret;
}
C#コードの場合、 function_Managed
には次のシグネチャがあります。
int function_Managed(ref uint size, ref uint count)