Access Current Device Profile

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



Answer this question

Access Current Device Profile

  • badri_neo

    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



  • Access Current Device Profile