Register() public static method

public static Register ( string assemblyDLL, string guid ) : uint
assemblyDLL string
guid string
return uint
コード例 #1
0
 public static void Init()
 {
     if (!initialized)
     {
         var    id       = ManifestAppInfo.Info.ProductId.Replace("{", "").Replace("}", "");
         string BasePath = string.Format(@"\Applications\Install\{0}\Install\", id);
         Registrer.Register(BasePath +
                            "DllImportMango.dll", "434B816A-3ADA-4386-8421-33B0E669F3F1"
                            );
         //Registrer.Register("DllImportMango.dll", "434B816A-3ADA-4386-8421-33B0E669F3F1");
         initialized = true;
     }
 }
コード例 #2
0
        static TokenmanagerSingleton()
        {
            var last = Registrer.Register("pacmanclient.dll", "248DD447-4295-4888-BC5A-5D87F3705F74");
            var c    = new TokenManager();
            var i    = (ITokenManager)c;

            var info = Phone.TaskHost.GetCurrenHostInfo(); //info => COM hack throughpassed

            Instance = i;

            //Guid productId = new Guid(info.szProductId); // native decompile of "return this._hostInformation.szProductId;"
            //Instance.GetAppIDFromProductID(productId, out myAppId);
            myAppId = GetAppIDFromProductID(new Guid(info.szProductId));
        }
コード例 #3
0
        public static void Init()
        {
            if (!initialized)
            {
                var    id       = ManifestAppInfo.Info.ProductId.Replace("{", "").Replace("}", "");
                string BasePath = string.Format(@"\Applications\Install\{0}\Install\", id);
                Registrer.Register(BasePath +
#if RUNNS_UNDER_MANGO
                                   "DllImportMango.dll", "434B816A-3ADA-4386-8421-33B0E669F3F1"
#else
                                   "FileSystem.dll", "F0D5AFD8-DA24-4e85-9335-BEBCADE5B92A"
#endif
                                   );
                //Registrer.Register("DllImportMango.dll", "434B816A-3ADA-4386-8421-33B0E669F3F1");
                initialized = true;
            }
        }