1*c2c66affSColin Finck #ifndef __WINETESTGUI_PRECOMP_H 2*c2c66affSColin Finck #define __WINETESTGUI_PRECOMP_H 3*c2c66affSColin Finck 4*c2c66affSColin Finck #include <stdio.h> 5*c2c66affSColin Finck #include <stdlib.h> 6*c2c66affSColin Finck #include <windows.h> 7*c2c66affSColin Finck #include <commctrl.h> 8*c2c66affSColin Finck #include "resource.h" 9*c2c66affSColin Finck 10*c2c66affSColin Finck extern HINSTANCE hInstance; 11*c2c66affSColin Finck 12*c2c66affSColin Finck #define MAX_NAME 32 13*c2c66affSColin Finck #define MAX_RUN_CMD 256 14*c2c66affSColin Finck 15*c2c66affSColin Finck typedef struct _TEST_ITEM 16*c2c66affSColin Finck { 17*c2c66affSColin Finck WCHAR szName[MAX_NAME]; 18*c2c66affSColin Finck WCHAR szRunCmd[MAX_RUN_CMD]; 19*c2c66affSColin Finck 20*c2c66affSColin Finck } TEST_ITEM, *PTEST_ITEM; 21*c2c66affSColin Finck 22*c2c66affSColin Finck typedef struct _MAIN_WND_INFO 23*c2c66affSColin Finck { 24*c2c66affSColin Finck HWND hMainWnd; 25*c2c66affSColin Finck HWND hBrowseDlg; 26*c2c66affSColin Finck HWND hBrowseTV; 27*c2c66affSColin Finck HWND hStatus; 28*c2c66affSColin Finck HANDLE hPipeThread; 29*c2c66affSColin Finck HANDLE hStdOutRd; 30*c2c66affSColin Finck HANDLE hStdOutWr; 31*c2c66affSColin Finck LPWSTR lpCmdLine; 32*c2c66affSColin Finck int nCmdShow; 33*c2c66affSColin Finck 34*c2c66affSColin Finck HICON hSmIcon; 35*c2c66affSColin Finck HICON hBgIcon; 36*c2c66affSColin Finck 37*c2c66affSColin Finck LPWSTR lpExeList; 38*c2c66affSColin Finck INT numExes; 39*c2c66affSColin Finck 40*c2c66affSColin Finck TEST_ITEM SelectedTest; 41*c2c66affSColin Finck 42*c2c66affSColin Finck BOOL bRunOnStart; 43*c2c66affSColin Finck BOOL bHideConsole; 44*c2c66affSColin Finck 45*c2c66affSColin Finck } MAIN_WND_INFO, *PMAIN_WND_INFO; 46*c2c66affSColin Finck 47*c2c66affSColin Finck /* dll exports */ 48*c2c66affSColin Finck wchar_t *GetTestName(); 49*c2c66affSColin Finck int GetModulesInTest(char **modules); 50*c2c66affSColin Finck int RunTest(const char *lpTest); 51*c2c66affSColin Finck 52*c2c66affSColin Finck 53*c2c66affSColin Finck /* mainwnd.c */ 54*c2c66affSColin Finck BOOL SendCommandToClient(PMAIN_WND_INFO pInfo, LPWSTR lpCommand); 55*c2c66affSColin Finck 56*c2c66affSColin Finck /* browsewnd.c */ 57*c2c66affSColin Finck BOOL CALLBACK BrowseDlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam); 58*c2c66affSColin Finck 59*c2c66affSColin Finck /* optionswnd.c */ 60*c2c66affSColin Finck BOOL CALLBACK OptionsDlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam); 61*c2c66affSColin Finck 62*c2c66affSColin Finck /* misc.c */ 63*c2c66affSColin Finck HIMAGELIST InitImageList(UINT StartResource, UINT EndResource, UINT Width, UINT Height); 64*c2c66affSColin Finck VOID DisplayMessage(LPWSTR lpMsg); 65*c2c66affSColin Finck VOID DisplayError(INT err); 66*c2c66affSColin Finck DWORD AnsiToUnicode(LPCSTR lpSrcStr, LPWSTR *lpDstStr); 67*c2c66affSColin Finck DWORD UnicodeToAnsi(LPCWSTR lpSrcStr, LPSTR *lpDstStr); 68*c2c66affSColin Finck 69*c2c66affSColin Finck #endif /* __WINETESTGUI_PRECOMP_H */ 70