static XapDeployerInterop() { uint reg = ComBridge.RegisterComDll("ComXapHandler.dll", new Guid("EE3552C5-B9EF-4309-B099-23256B3D154C")); if (reg != 0x0) { throw new ExternalException("Failure to register COM DLL (result: " + reg + ")"); } deployer = new CXapHandler() as IXapHandler; }
/// <summary> /// Initializes Application API instance /// </summary> /// <returns></returns> public static bool Initialize() { if (instance == null) { uint retval = 0; try { retval = Microsoft.Phone.InteropServices.ComBridge.RegisterComDll("ComXapHandler" + AppShortName + ".dll", new Guid("7E6418C7-C93F-4B82-947E-83FEA7A757CC")); } catch (Exception ex) { return(false); } instance = (IXapHandler) new CXapHandler(); return((instance != null) ? true : false); } return(true); }
/// <summary> /// Initializes Application API instance /// </summary> /// <returns></returns> public static bool Initialize() { if (instance == null) { uint retval = 0; try { retval = Microsoft.Phone.InteropServices.ComBridge.RegisterComDll("ComXapHandler" + AppShortName + ".dll", new Guid("7E6418C7-C93F-4B82-947E-83FEA7A757CC")); } catch (Exception ex) { return false; } instance = (IXapHandler)new CXapHandler(); return (instance != null) ? true : false; } return true; }