void Function 1 ()
{
BYTE bVer = 0;
BYTE bSecurity = 0;
Master = Function2(&bVer, &bSecurity);
if (Master)
DoSomething_With_bVer_and_bSecurity;
}
BOOL Function2(BYTE *ver, BYTE *security )
{
static BYTE buffer[100];
*ver = buffer[3];
*security = buffer[3+1];
if ((*security) & FF0F)
return (TRUE);
else
return (FALSE);
}
Ive tried to write this in c#, but I get error because I try to convert a ref to to a byte[]. Can somebody convert this to C# ??
{
BYTE bVer = 0;
BYTE bSecurity = 0;
Master = Function2(&bVer, &bSecurity);
if (Master)
DoSomething_With_bVer_and_bSecurity;
}
BOOL Function2(BYTE *ver, BYTE *security )
{
static BYTE buffer[100];
*ver = buffer[3];
*security = buffer[3+1];
if ((*security) & FF0F)
return (TRUE);
else
return (FALSE);
}
Ive tried to write this in c#, but I get error because I try to convert a ref to to a byte[]. Can somebody convert this to C# ??