trayvol.c
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 0k
Category:

Windows Develop

Development Platform:

Visual C++

  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. }