public static void GenUniqueKey(uint hDongle, byte[] seed) { byte[] cPid = new byte[9]; byte[] cAdminPin = new byte[17]; var ret = RockeyArmHelper.Dongle_GenUniqueKey(hDongle, seed.Length, seed, cPid, cAdminPin); if (ret != 0) { throw new Exception(RockeyArmHelper.GetErrorInfo(ret)); } }