WindowsXP-SP1/shell/osshell/control/mmsys/trayvol.c
2020-09-30 16:53:49 +02:00

18 lines
438 B
C

#include <windows.h>
#include "systrayp.h"
#include "trayvol.h"
#define MMSYS_UPDATEMIXER 3000 //This message tells the systray that the preferred device has
//changed.
// Helper functions for things we care about
BOOL SetTrayVolumeEnabled(BOOL bEnable)
{
return SysTray_EnableService(STSERVICE_VOLUME,bEnable);
}
BOOL GetTrayVolumeEnabled(void)
{
return SysTray_IsServiceEnabled(STSERVICE_VOLUME);
}