windows-nt/Source/XPSP1/NT/shell/osshell/control/mmsys/trayvol.c
2020-09-26 16:20:57 +08:00

18 lines
421 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);
}