static HtcRootAccess() { try { InteropHelper.RegisterDLLOrExcept("HtcRoot.dll", "02CF6430-02A9-4256-9A50-7C28A503CAAE"); } catch (Exception ex) { MessageBox.Show("Error opening HtcRoot.dll:\n" + ex.ToString()); } HtcUtility = new CHtcUtility() as IHtcUtility; }