2008-04-16 11:01:25 +00:00
|
|
|
#ifndef PRECOMP_H__
|
|
|
|
#define PRECOMP_H__
|
|
|
|
|
2008-04-22 23:19:50 +00:00
|
|
|
#define DIRECTINPUT_VERSION 0x0800
|
2008-04-25 10:56:18 +00:00
|
|
|
#define DIRECTSOUND_VERSION 0x0800
|
2008-04-28 15:14:12 +00:00
|
|
|
#define D3D_OVERLOADS
|
|
|
|
|
2014-01-04 14:13:48 +00:00
|
|
|
#include <stdarg.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winnls.h>
|
|
|
|
#include <winuser.h>
|
2008-04-22 23:19:50 +00:00
|
|
|
#include <setupapi.h>
|
2008-04-28 15:14:12 +00:00
|
|
|
#include <ddraw.h>
|
2011-07-25 23:34:29 +00:00
|
|
|
#include <initguid.h>
|
|
|
|
#include <devguid.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2008-04-16 11:01:25 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2008-04-28 15:14:12 +00:00
|
|
|
HWND hMainDialog;
|
2008-04-30 10:55:35 +00:00
|
|
|
HWND hTabCtrl;
|
2008-04-29 12:19:55 +00:00
|
|
|
ULONG NumDisplayAdapter;
|
|
|
|
HWND * hDisplayWnd;
|
|
|
|
ULONG NumSoundAdapter;
|
|
|
|
HWND * hSoundWnd;
|
|
|
|
HWND hDialogs[5];
|
2008-04-16 11:01:25 +00:00
|
|
|
}DXDIAG_CONTEXT, *PDXDIAG_CONTEXT;
|
|
|
|
|
|
|
|
/* globals */
|
|
|
|
extern HINSTANCE hInst;
|
|
|
|
|
2013-09-19 22:05:19 +00:00
|
|
|
/* theming hack */
|
|
|
|
BOOL EnableDialogTheme(HWND hwnd);
|
|
|
|
|
2008-04-16 11:01:25 +00:00
|
|
|
/* dialog wnd proc */
|
|
|
|
INT_PTR CALLBACK SystemPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK DisplayPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK SoundPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK MusicPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK InputPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK NetworkPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK HelpPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2008-04-28 15:14:12 +00:00
|
|
|
/* DirectDraw tests */
|
2011-03-12 19:03:27 +00:00
|
|
|
VOID DDTests(VOID);
|
2008-04-29 12:19:55 +00:00
|
|
|
|
2009-03-04 20:34:17 +00:00
|
|
|
/* Direct3D tests */
|
2011-03-12 19:03:27 +00:00
|
|
|
VOID D3DTests(VOID);
|
2009-03-04 20:34:17 +00:00
|
|
|
|
2008-04-29 12:19:55 +00:00
|
|
|
/* DirectSound initialization */
|
|
|
|
void InitializeDirectSoundPage(PDXDIAG_CONTEXT pContext);
|
2008-04-16 11:01:25 +00:00
|
|
|
|
2008-04-29 12:19:55 +00:00
|
|
|
/* display adapter initialization */
|
|
|
|
void InitializeDisplayAdapters(PDXDIAG_CONTEXT pContext);
|
2008-04-28 21:47:43 +00:00
|
|
|
|
2008-05-06 07:46:58 +00:00
|
|
|
/* general functions */
|
2008-04-29 10:27:03 +00:00
|
|
|
BOOL GetFileVersion(LPCWSTR szAppName, WCHAR * szVer, DWORD szVerSize);
|
2008-04-28 21:47:43 +00:00
|
|
|
BOOL GetFileModifyTime(LPCWSTR pFullPath, WCHAR * szTime, int szTimeSize);
|
2008-05-06 07:46:58 +00:00
|
|
|
BOOL GetCatFileFromDriverPath(LPWSTR szFileName, LPWSTR szCatFileName);
|
|
|
|
BOOL GetRegValue(HKEY hBaseKey, LPWSTR SubKey, LPWSTR ValueName, DWORD Type, LPWSTR Result, DWORD Size);
|
|
|
|
VOID InsertTabCtrlItem(HWND hDlgCtrl, INT Position, LPWSTR uId);
|
|
|
|
VOID EnumerateDrivers(PVOID Context, HDEVINFO hList, PSP_DEVINFO_DATA pInfoData);
|
2014-01-04 14:13:48 +00:00
|
|
|
|
|
|
|
#endif /* PRECOMP_H__ */
|