Leaked source code of windows server 2003
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.

42 lines
1.7 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // File: multchan.c
  4. //
  5. // This file defines the functions that drive the multichannel
  6. // volume tab of the Sounds & Multimedia control panel.
  7. //
  8. // History:
  9. // 13 March 2000 RogerW
  10. // Created.
  11. //
  12. // Copyright (C) 2000 Microsoft Corporation All Rights Reserved.
  13. //
  14. // Microsoft Confidential
  15. //
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // Prototypes
  18. INT_PTR CALLBACK MultichannelDlg (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  19. HRESULT SetDevice (UINT uiMixID, DWORD dwDest, DWORD dwVolID);
  20. UINT GetPageStringID ();
  21. BOOL OnInitDialogMC (HWND hDlg, HWND hwndFocus, LPARAM lParam);
  22. void OnDestroyMC (HWND hDlg);
  23. void OnNotifyMC (HWND hDlg, LPNMHDR pnmh);
  24. BOOL PASCAL OnCommandMC (HWND hDlg, int id, HWND hwndCtl, UINT codeNotify);
  25. void FreeMCMixer ();
  26. HRESULT GetMCVolume ();
  27. void DisplayMCVolumeControl (HWND hDlg);
  28. void ShowAndEnableWindow (HWND hwnd, BOOL fEnable);
  29. void UpdateMCVolumeSliders (HWND hDlg);
  30. void MCVolumeScroll (HWND hwnd, HWND hwndCtl, UINT code, int pos);
  31. BOOL SetMCVolume (DWORD dwChannel, DWORD dwVol, BOOL fMoveTogether);
  32. BOOL SliderIDtoChannel (UINT uiSliderID, DWORD* pdwChannel);
  33. void HandleMCPowerBroadcast (HWND hWnd, WPARAM wParam, LPARAM lParam);
  34. void InitMCVolume (HWND hDlg);
  35. void FreeAll ();
  36. BOOL GetSpeakerLabel (DWORD dwSpeakerType, UINT uiSliderIndx, WCHAR* szLabel, int nSize);
  37. BOOL GetSpeakerType (DWORD* pdwSpeakerType);
  38. void MCDeviceChange_Cleanup ();
  39. void MCDeviceChange_Init (HWND hWnd, DWORD dwMixerID);
  40. void MCDeviceChange_Change (HWND hDlg, WPARAM wParam, LPARAM lParam);