ReactOS 0.4.15-dev-5895-g2687c1b
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 LRESULT 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 LRESULT CALLBACK TabDlgProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 756 of file main.cpp.

757{
758 switch(msg) {
759 case WM_COMMAND:
760 switch (LOWORD(wParam)) {
761 case IDB_STARTSTOP:
762 if (stopTestTone()) {
763 SetDlgItemText(hWndChild[0], IDB_STARTSTOP, "&Play test tone");
764 return TRUE;
765 }
766 if (playTestTone()) {
768 return TRUE;
769 }
770 break;
771 case IDC_URL1:
772 case IDC_URL2:
774 break;
775 }
778 SetTextColor((HDC)wParam, 0xFF0000);
781 }
782 }
783
784 return 0;
785}
#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:749
HWND hWndChild[NUM_TABS]
Definition: main.h:75
#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
LONG_PTR LRESULT
Definition: windef.h:209
#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:1762
HBRUSH WINAPI GetSysColorBrush(_In_ int)
#define WM_COMMAND
Definition: winuser.h:1730
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SetDlgItemText
Definition: winuser.h:5839
#define COLOR_BTNFACE
Definition: winuser.h:922

Referenced by initDialog().

Variable Documentation

◆ cmiData

CMIDATA cmiData

Definition at line 78 of file main.h.

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

◆ cmiTopologyDev

CMIDEV cmiTopologyDev

Definition at line 77 of file main.h.

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

◆ currentChannelCount

◆ currentTab

LRESULT currentTab

Definition at line 76 of file main.h.

Referenced by changeTab(), and initDialog().

◆ hInst

HINSTANCE hInst

Definition at line 72 of file main.h.

◆ hURLFont

HFONT hURLFont

Definition at line 82 of file main.h.

Referenced by cleanUp(), and initDialog().

◆ hWave

HWAVEOUT hWave

Definition at line 79 of file main.h.

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

◆ hWndChild

◆ hWndMain

HWND hWndMain

Definition at line 73 of file main.h.

◆ hWndTab

HWND hWndTab

Definition at line 74 of file main.h.

Referenced by changeTab(), and initDialog().

◆ pwh

WAVEHDR pwh

Definition at line 80 of file main.h.

Referenced by playTestTone(), and stopTestTone().