21#define VOLUME_PAGE_SIZE 100
23#define BALANCE_CENTER 32
24#define BALANCE_RIGHT 64
25#define BALANCE_STEPS 64
26#define BALANCE_TICKS 1
27#define BALANCE_PAGE_SIZE 12
32#define ADVANCED_BUTTON_HEIGHT 16
34#define HOTKEY_CTRL_S 1
69#define SZ_APP_CLASS TEXT("Volume Control")
70#define _countof(array) (sizeof(array) / sizeof(array[0]))
73#define DPRINT DbgPrint("SNDVOL32: %s:%i: ", __FILE__, __LINE__); DbgPrint
static BOOL CALLBACK EnumProc(_In_ HWND hWnd, _In_ LPARAM lParam)
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
static const WCHAR szDeviceName[]
_In_ ULONGLONG _In_ PUNICODE_STRING _In_ PUNICODE_STRING LongName
#define MIXER_LONG_NAME_CHARS
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
struct _SND_MIXER_DESTINATION SND_MIXER_DESTINATION
INT SndMixerGetDestinationCount(PSND_MIXER Mixer)
struct _PREFERENCES_CONTEXT PREFERENCES_CONTEXT
enum _WINDOW_MODE WINDOW_MODE
struct _SND_MIXER SND_MIXER
struct _SND_MIXER_CONNECTION SND_MIXER_CONNECTION
BOOL SndMixerEnumLines(PSND_MIXER Mixer, PFNSNDMIXENUMLINES EnumProc, PVOID Context)
BOOL SndMixerSelect(PSND_MIXER Mixer, UINT MixerId)
VOID SndMixerDestroy(PSND_MIXER Mixer)
LPMIXERLINE SndMixerGetLineByName(PSND_MIXER Mixer, DWORD LineID, LPWSTR LineName)
BOOL SndMixerQueryControls(PSND_MIXER Mixer, PUINT DisplayControls, LPMIXERLINE LineInfo, LPMIXERCONTROL *Controls)
VOID UpdateDialogLineSliderControl(PPREFERENCES_CONTEXT PrefContext, LPMIXERLINE Line, DWORD DialogID, DWORD Position)
VOID UpdateDialogLineSwitchControl(PPREFERENCES_CONTEXT PrefContext, LPMIXERLINE Line, LONG fValue)
struct _SND_MIXER_DESTINATION * PSND_MIXER_DESTINATION
PSND_MIXER SndMixerCreate(HWND hWndNotification, UINT MixerId)
BOOL(CALLBACK * PFNSNDMIXENUMPRODUCTS)(PSND_MIXER Mixer, UINT Id, LPCTSTR ProductName, PVOID Context)
BOOL(CALLBACK * PFNSNDMIXENUMLINES)(PSND_MIXER Mixer, LPMIXERLINE Line, UINT DisplayControls, PVOID Context)
VOID CloseAppConfig(VOID)
INT AllocAndLoadString(OUT LPWSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
DWORD GetStyleValue(VOID)
VOID LoadDialogCtrls(PPREFERENCES_CONTEXT PrefContext)
struct _SET_VOLUME_CONTEXT * PSET_VOLUME_CONTEXT
struct _ADVANCED_CONTEXT * PADVANCED_CONTEXT
UINT SndMixerGetSelection(PSND_MIXER Mixer)
BOOL(CALLBACK * PFNSNDMIXENUMCONNECTIONS)(PSND_MIXER Mixer, DWORD LineID, LPMIXERLINE Line, PVOID Context)
enum _WINDOW_MODE * PWINDOW_MODE
DWORD LoadAndFormatString(IN HINSTANCE hInstance, IN UINT uID, OUT LPWSTR *lpTarget,...)
BOOL SndMixerIsDisplayControl(PSND_MIXER Mixer, LPMIXERCONTROL Control)
BOOL SaveXYCoordWnd(IN HWND hWnd, IN PPREFERENCES_CONTEXT PrefContext)
VOID SndMixerClose(PSND_MIXER Mixer)
INT_PTR CALLBACK AdvancedDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
struct _SND_MIXER_CONNECTION * PSND_MIXER_CONNECTION
INT SndMixerGetProductName(PSND_MIXER Mixer, LPTSTR lpBuffer, UINT uSize)
struct _MIXER_WINDOW MIXER_WINDOW
INT SndMixerGetLineName(PSND_MIXER Mixer, DWORD LineID, LPTSTR lpBuffer, UINT uSize, BOOL LongName)
struct _MIXER_WINDOW * PMIXER_WINDOW
struct _SET_VOLUME_CONTEXT SET_VOLUME_CONTEXT
BOOL SndMixerEnumProducts(PSND_MIXER Mixer, PFNSNDMIXENUMPRODUCTS EnumProc, PVOID Context)
struct _SNDVOL_REG_LINESTATE * PSNDVOL_REG_LINESTATE
struct _PREFERENCES_CONTEXT * PPREFERENCES_CONTEXT
BOOL WriteLineConfig(IN LPTSTR szDeviceName, IN LPTSTR szLineName, IN PSNDVOL_REG_LINESTATE LineState, IN DWORD cbSize)
INT SndMixerGetVolumeControlDetails(PSND_MIXER Mixer, DWORD dwControlID, DWORD cChannels, DWORD cbDetails, LPVOID paDetails)
BOOL SndMixerEnumConnections(PSND_MIXER Mixer, DWORD LineID, PFNSNDMIXENUMCONNECTIONS EnumProc, PVOID Context)
BOOL LoadXYCoordWnd(IN PPREFERENCES_CONTEXT PrefContext)
INT SndMixerSetVolumeControlDetails(PSND_MIXER Mixer, DWORD dwControlID, DWORD cChannels, DWORD cbDetails, LPVOID paDetails)
struct _ADVANCED_CONTEXT ADVANCED_CONTEXT
struct _SND_MIXER * PSND_MIXER
INT_PTR CALLBACK TrayDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL ReadLineConfig(IN LPTSTR szDeviceName, IN LPTSTR szLineName, IN LPTSTR szControlName, OUT DWORD *Flags)
struct _SNDVOL_REG_LINESTATE SNDVOL_REG_LINESTATE
PMIXER_WINDOW MixerWindow
WCHAR LineName[MIXER_LONG_NAME_CHARS]
BOOL bShowExtendedControls
struct _SND_MIXER * Mixer
BOOL bHasExtendedControls
PMIXER_WINDOW MixerWindow
WCHAR LineName[MIXER_LONG_NAME_CHARS]
WCHAR LineName[MIXER_LONG_NAME_CHARS]
struct _SND_MIXER_CONNECTION * Next
struct _SND_MIXER_DESTINATION * Next
PSND_MIXER_CONNECTION Connections
PSND_MIXER_DESTINATION Lines
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_In_ WDF_WMI_PROVIDER_CONTROL Control
_Must_inspect_result_ _In_ ULONG Flags