Esempio n. 1
0
        public static string GetComputerKey()
        {
            IdentityStruct p = new IdentityStruct();

            if (CheckStatus)
            {
                GetIdentity(ref p);
            }
            else
            {
                return("Unknown");
            }
            return(new string(p.textEncoding));
        }
Esempio n. 2
0
        public static uint GetComputerCode()
        {
            IdentityStruct p = new IdentityStruct();

            if (CheckStatus)
            {
                GetIdentity(ref p);
            }
            else
            {
                return(0);
            }
            return(p.hash);
        }
Esempio n. 3
0
 private static extern void GetIdentity(ref IdentityStruct p);