none
Access Current Device Profile RRS feed

  • Question

  • I want to be able to play a notification sound.  I'm using:
      [DllImport("CoreDll.DLL", EntryPoint = "PlaySound", SetLastError = true)]
            private extern static int MobilePlaySound(string szSound, IntPtr hMod, int flags);

    which works fine, but if my phone is on silent or meeting, the sound still plays, is there any way to find out what device profile I'm currently on?
    Thursday, June 15, 2006 3:42 PM

Answers

  • Basically, the only way I know to obtain the active profile name is to read it from the registry (potentially, using DMProcessConfigXml)

    See this thread for more details

    Thursday, June 15, 2006 7:30 PM