- use tab control as parent for the child dialogs
[reactos.git] / reactos / base / applications / dxdiag / precomp.h
1 #ifndef PRECOMP_H__
2 #define PRECOMP_H__
3
4 #define DIRECTINPUT_VERSION 0x0800
5 #define DIRECTSOUND_VERSION 0x0800
6 #define D3D_OVERLOADS
7 #define _SETUPAPI_VER _WIN32_WINNT
8
9 #include <stdio.h>
10 #include <windows.h>
11 #include <limits.h>
12 #include <setupapi.h>
13 #include <commctrl.h>
14 #include <dinput.h>
15 #include <ddraw.h>
16
17 #include <dsound.h>
18 #include "resource.h"
19
20 typedef struct
21 {
22 HWND hMainDialog;
23 HWND hTabCtrl;
24 ULONG NumDisplayAdapter;
25 HWND * hDisplayWnd;
26 ULONG NumSoundAdapter;
27 HWND * hSoundWnd;
28 HWND hDialogs[5];
29
30 }DXDIAG_CONTEXT, *PDXDIAG_CONTEXT;
31
32
33
34 /* globals */
35 extern HINSTANCE hInst;
36
37 /* dialog wnd proc */
38 INT_PTR CALLBACK SystemPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
39 INT_PTR CALLBACK DisplayPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
40 INT_PTR CALLBACK SoundPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
41 INT_PTR CALLBACK MusicPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
42 INT_PTR CALLBACK InputPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
43 INT_PTR CALLBACK NetworkPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
44 INT_PTR CALLBACK HelpPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
45 BOOL GetRegValue(HKEY hBaseKey, LPWSTR SubKey, LPWSTR ValueName, DWORD Type, LPWSTR Result, DWORD Size);
46
47 VOID InsertTabCtrlItem(HWND hDlgCtrl, INT Position, LPWSTR uId);
48
49 /* DirectDraw tests */
50 VOID DDTests();
51
52 /* DirectSound initialization */
53 void InitializeDirectSoundPage(PDXDIAG_CONTEXT pContext);
54
55 /* display adapter initialization */
56 void InitializeDisplayAdapters(PDXDIAG_CONTEXT pContext);
57
58 BOOL GetFileVersion(LPCWSTR szAppName, WCHAR * szVer, DWORD szVerSize);
59 BOOL GetFileModifyTime(LPCWSTR pFullPath, WCHAR * szTime, int szTimeSize);
60 #endif