0

I have to get the current Mute state from the following registry values as mentioned below:-

For PPC 2002/2003:

\HKCU\ControlPanel\Notifications\ShellOverrides\Mode 
  • 2 for Mute mode.
  • 0 for Not-mute mode.

Not sure if other bits are used here for other things.

Thanks

4

1 回答 1

2

这是你要找的吗?

LONG lReturn;
HKEY hkey;
DWORD dwLen, dwMode;

   lReturn = RegOpenKeyEx(HKEY_CURRENT_USER,"ControlPanel\\Notifications\\ShellOverrides",0,KEY_QUERY_VALUE|KEY_READ,&hkey);
   if (lReturn == ERROR_SUCCESS)
   {
      dwLen = sizeof(DWORD);
      lReturn = RegQueryValueEx(hkey,"Mode", NULL, NULL,(LPBYTE)&dwMode, &dwLen);
      RegCloseKey(hkey);
   }
于 2012-02-13T19:03:10.743 回答