[ADVAPI32_WINETEST] Revert service.c changes from 3c1b7834e1 to avoid testbot hangs...
[reactos.git] / modules / rostests / winetests / GUI / precomp.h
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
10 extern HINSTANCE hInstance;
11
12 #define MAX_NAME 32
13 #define MAX_RUN_CMD 256
14
15 typedef struct _TEST_ITEM
16 {
17 WCHAR szName[MAX_NAME];
18 WCHAR szRunCmd[MAX_RUN_CMD];
19
20 } TEST_ITEM, *PTEST_ITEM;
21
22 typedef 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 */
48 wchar_t *GetTestName();
49 int GetModulesInTest(char **modules);
50 int RunTest(const char *lpTest);
51
52
53 /* mainwnd.c */
54 BOOL SendCommandToClient(PMAIN_WND_INFO pInfo, LPWSTR lpCommand);
55
56 /* browsewnd.c */
57 BOOL CALLBACK BrowseDlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam);
58
59 /* optionswnd.c */
60 BOOL CALLBACK OptionsDlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam);
61
62 /* misc.c */
63 HIMAGELIST InitImageList(UINT StartResource, UINT EndResource, UINT Width, UINT Height);
64 VOID DisplayMessage(LPWSTR lpMsg);
65 VOID DisplayError(INT err);
66 DWORD AnsiToUnicode(LPCSTR lpSrcStr, LPWSTR *lpDstStr);
67 DWORD UnicodeToAnsi(LPCWSTR lpSrcStr, LPSTR *lpDstStr);
68
69 #endif /* __WINETESTGUI_PRECOMP_H */