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
|
|
|
|
|
2008-04-18 15:36:29 +00:00
|
|
|
#include <stdio.h>
|
2008-04-16 11:01:25 +00:00
|
|
|
#include <windows.h>
|
2008-04-25 10:56:18 +00:00
|
|
|
#include <limits.h>
|
2008-05-04 13:58:45 +00:00
|
|
|
#include <mmsystem.h>
|
2008-04-22 23:19:50 +00:00
|
|
|
#include <setupapi.h>
|
2008-04-16 11:01:25 +00:00
|
|
|
#include <commctrl.h>
|
2008-04-28 15:14:12 +00:00
|
|
|
#include <ddraw.h>
|
|
|
|
|
2008-05-04 13:58:45 +00:00
|
|
|
#include <mmreg.h>
|
2008-05-06 07:46:58 +00:00
|
|
|
#include <wintrust.h>
|
|
|
|
#include <softpub.h>
|
|
|
|
#include <mscat.h>
|
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;
|
|
|
|
|
|
|
|
/* 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 */
|
2008-04-29 12:19:55 +00:00
|
|
|
VOID DDTests();
|
|
|
|
|
2009-03-04 20:34:17 +00:00
|
|
|
/* Direct3D tests */
|
|
|
|
VOID D3DTests();
|
|
|
|
|
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);
|
2008-04-16 11:01:25 +00:00
|
|
|
#endif
|