reactos/rostests/winetests/GUI/precomp.h
Ged Murphy 29474c309b Rough code to start Winetests processes from the GUI, but with the console's stdout redirected to a pipe controlled by the GUI.
We can now read the console text from the winetest processes in the GUI (although it's just usage info at the moment)

svn path=/trunk/; revision=37447
2008-11-18 18:57:27 +00:00

70 lines
1.5 KiB
C

#ifndef __WINETESTGUI_PRECOMP_H
#define __WINETESTGUI_PRECOMP_H
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
extern HINSTANCE hInstance;
#define MAX_NAME 32
#define MAX_RUN_CMD 256
typedef struct _TEST_ITEM
{
WCHAR szName[MAX_NAME];
WCHAR szRunCmd[MAX_RUN_CMD];
} TEST_ITEM, *PTEST_ITEM;
typedef struct _MAIN_WND_INFO
{
HWND hMainWnd;
HWND hBrowseDlg;
HWND hBrowseTV;
HWND hStatus;
HANDLE hPipeThread;
HANDLE hStdOutRd;
HANDLE hStdOutWr;
LPWSTR lpCmdLine;
int nCmdShow;
HICON hSmIcon;
HICON hBgIcon;
LPWSTR lpExeList;
INT numExes;
TEST_ITEM SelectedTest;
BOOL bRunOnStart;
BOOL bHideConsole;
} MAIN_WND_INFO, *PMAIN_WND_INFO;
/* dll exports */
wchar_t *GetTestName();
int GetModulesInTest(char **modules);
int RunTest(const char *lpTest);
/* mainwnd.c */
BOOL SendCommandToClient(PMAIN_WND_INFO pInfo, LPWSTR lpCommand);
/* browsewnd.c */
BOOL CALLBACK BrowseDlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam);
/* optionswnd.c */
BOOL CALLBACK OptionsDlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam);
/* misc.c */
HIMAGELIST InitImageList(UINT StartResource, UINT EndResource, UINT Width, UINT Height);
VOID DisplayMessage(LPWSTR lpMsg);
VOID DisplayError(INT err);
DWORD AnsiToUnicode(LPCSTR lpSrcStr, LPWSTR *lpDstStr);
DWORD UnicodeToAnsi(LPCWSTR lpSrcStr, LPSTR *lpDstStr);
#endif /* __WINETESTGUI_PRECOMP_H */