ReactOS 0.4.15-dev-8061-g57b775e
main.h File Reference
#include <math.h>
#include <windows.h>
#include <devioctl.h>
#include <commctrl.h>
#include <setupapi.h>
#include <shellapi.h>
#include <cpl.h>
#include <ks.h>
#include <mmreg.h>
#include <ksmedia.h>
#include <mmsystem.h>
#include <dsound.h>
#include "resource.h"
#include "property.h"
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _CMIDEV
 

Macros

#define WIN32_LEAN_AND_MEAN
 
#define INITGUID
 
#define DIRECTSOUND_VERSION   0x800
 
#define SAMPLE_RATE   44100
 
#define BASS_FREQUENCY   90
 
#define BASS_AMPLITUDE   0.5
 
#define SPEAKER_FREQUENCY   440
 
#define SPEAKER_AMPLITUDE   0.5
 
#define MAX_TOKEN_SIZE   128
 

Typedefs

typedef struct _CMIDEV CMIDEV
 

Functions

static INT_PTR CALLBACK TabDlgProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 

Variables

HINSTANCE hInst
 
HWND hWndMain
 
HWND hWndTab
 
HWND hWndChild [NUM_TABS]
 
LRESULT currentTab
 
CMIDEV cmiTopologyDev
 
CMIDATA cmiData
 
HWAVEOUT hWave
 
WAVEHDR pwh
 
int currentChannelCount
 
HFONT hURLFont
 

Macro Definition Documentation

◆ BASS_AMPLITUDE

#define BASS_AMPLITUDE   0.5

Definition at line 56 of file main.h.

◆ BASS_FREQUENCY

#define BASS_FREQUENCY   90

Definition at line 55 of file main.h.

◆ DIRECTSOUND_VERSION

#define DIRECTSOUND_VERSION   0x800

Definition at line 47 of file main.h.

◆ INITGUID

#define INITGUID

Definition at line 46 of file main.h.

◆ MAX_TOKEN_SIZE

#define MAX_TOKEN_SIZE   128

Definition at line 61 of file main.h.

◆ SAMPLE_RATE

#define SAMPLE_RATE   44100

Definition at line 53 of file main.h.

◆ SPEAKER_AMPLITUDE

#define SPEAKER_AMPLITUDE   0.5

Definition at line 59 of file main.h.

◆ SPEAKER_FREQUENCY

#define SPEAKER_FREQUENCY   440

Definition at line 58 of file main.h.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 32 of file main.h.

Typedef Documentation

◆ CMIDEV

Function Documentation

◆ TabDlgProc()

static INT_PTR CALLBACK TabDlgProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 751 of file main.cpp.

752{
753 switch(msg) {
754 case WM_COMMAND:
755 switch (LOWORD(wParam)) {
756 case IDB_STARTSTOP:
757 if (stopTestTone()) {
758 SetDlgItemText(hWndChild[0], IDB_STARTSTOP, "&Play test tone");
759 return TRUE;
760 }
761 if (playTestTone()) {
763 return TRUE;
764 }
765 break;
766 case IDC_URL1:
767 case IDC_URL2:
769 break;
770 }
773 SetTextColor((HDC)wParam, 0xFF0000);
776 }
777 }
778
779 return 0;
780}
#define msg(x)
Definition: auth_time.c:54
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define TRUE
Definition: types.h:120
BOOL stopTestTone(void)
Definition: main.cpp:103
BOOL playTestTone()
Definition: main.cpp:139
void openURL(int control)
Definition: main.cpp:744
HWND hWndChild[NUM_TABS]
Definition: main.h:74
#define IDB_STARTSTOP
Definition: resource.h:56
#define IDC_URL2
Definition: resource.h:91
#define IDC_URL1
Definition: resource.h:90
static HDC
Definition: imagelist.c:92
#define LOWORD(l)
Definition: pedump.c:82
int32_t INT_PTR
Definition: typedefs.h:64
#define TRANSPARENT
Definition: wingdi.h:950
int WINAPI SetBkMode(_In_ HDC, _In_ int)
Definition: dc.c:1056
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
Definition: text.c:918
#define WM_CTLCOLORSTATIC
Definition: winuser.h:1772
HBRUSH WINAPI GetSysColorBrush(_In_ int)
#define WM_COMMAND
Definition: winuser.h:1740
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SetDlgItemText
Definition: winuser.h:5849
#define COLOR_BTNFACE
Definition: winuser.h:928

Referenced by initDialog().

Variable Documentation

◆ cmiData

CMIDATA cmiData

Definition at line 77 of file main.h.

Referenced by applySettings(), checkToken(), getDriverData(), setDlgItems(), setDriverData(), and WinMain().

◆ cmiTopologyDev

CMIDEV cmiTopologyDev

Definition at line 76 of file main.h.

Referenced by applySettings(), cleanUp(), openDevice(), parseArguments(), setDlgItems(), and WinMain().

◆ currentChannelCount

◆ currentTab

LRESULT currentTab

Definition at line 75 of file main.h.

Referenced by changeTab(), and initDialog().

◆ hInst

HINSTANCE hInst

Definition at line 71 of file main.h.

◆ hURLFont

HFONT hURLFont

Definition at line 81 of file main.h.

Referenced by cleanUp(), and initDialog().

◆ hWave

HWAVEOUT hWave

Definition at line 78 of file main.h.

Referenced by playTestTone(), proc_PlaySound(), stopTestTone(), widCallback(), WinMain(), and wodCallback().

◆ hWndChild

◆ hWndMain

HWND hWndMain

Definition at line 72 of file main.h.

◆ hWndTab

HWND hWndTab

Definition at line 73 of file main.h.

Referenced by changeTab(), and initDialog().

◆ pwh

WAVEHDR pwh

Definition at line 79 of file main.h.

Referenced by playTestTone(), and stopTestTone().