//Get last donned status of device when application first runs private static void GetLastDonnedStatus() { try { IHostCommandExt m_commandExt = m_activeDevice.HostCommand as IHostCommandExt; if (m_commandExt != null) { HeadsetState laststate = m_commandExt.HeadsetState; } } catch (Exception e) { Console.Out.WriteLine("Other Exception in GetLastDonnedStatus(): " + e.ToString()); } }