Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
421 B

  1. #include <windows.h>
  2. #include "systrayp.h"
  3. #include "trayvol.h"
  4. #define MMSYS_UPDATEMIXER 3000 //This message tells the systray that the preferred device has
  5. //changed.
  6. // Helper functions for things we care about
  7. BOOL SetTrayVolumeEnabled(BOOL bEnable)
  8. {
  9. return SysTray_EnableService(STSERVICE_VOLUME,bEnable);
  10. }
  11. BOOL GetTrayVolumeEnabled(void)
  12. {
  13. return SysTray_IsServiceEnabled(STSERVICE_VOLUME);
  14. }