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