Esempio n. 1
0
        static void Main(string[] args)
        {
            uint   ret    = 0;
            string StrMsg = string.Empty;

            if (ValidateKey() > 0)
            {
                //执行操作代码
                WriteLineGreen("Valid License");
            }
            else
            {
                WriteLineRed("Invalid License");
            }


            //22. slm_cleanup
            ret = SlmRuntime.slm_cleanup();
            if (ret != SSErrCode.SS_OK)
            {
                StrMsg = string.Format("slm_cleanup Failure:0x{0:X8}", ret);
                WriteLineRed(StrMsg);
            }
            else
            {
                WriteLineGreen("slm_cleanup Success!");
            }
            Console.ReadKey();
        }