2008-06-18 19:10:39 +00:00
|
|
|
#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;
|
|
|
|
|
2008-06-20 08:21:49 +00:00
|
|
|
#define MAX_RUN_CMD 256
|
|
|
|
|
|
|
|
typedef struct _TEST_ITEM
|
|
|
|
{
|
|
|
|
WCHAR szSelectedDll[MAX_PATH];
|
|
|
|
WCHAR szRunString[MAX_RUN_CMD];
|
|
|
|
|
|
|
|
} TEST_ITEM, *PTEST_ITEM;
|
|
|
|
|
2008-06-18 19:10:39 +00:00
|
|
|
typedef struct _MAIN_WND_INFO
|
|
|
|
{
|
2008-06-19 08:36:17 +00:00
|
|
|
HWND hMainWnd;
|
|
|
|
HWND hBrowseDlg;
|
|
|
|
HWND hBrowseTV;
|
|
|
|
HWND hStatus;
|
|
|
|
int nCmdShow;
|
2008-06-18 19:10:39 +00:00
|
|
|
|
|
|
|
HICON hSmIcon;
|
|
|
|
HICON hBgIcon;
|
|
|
|
|
|
|
|
LPWSTR lpDllList;
|
2008-06-19 08:36:17 +00:00
|
|
|
INT numDlls;
|
2008-06-18 19:10:39 +00:00
|
|
|
|
2008-06-20 11:20:26 +00:00
|
|
|
TEST_ITEM SelectedTest;
|
2008-06-20 08:21:49 +00:00
|
|
|
|
2008-06-18 19:10:39 +00:00
|
|
|
} MAIN_WND_INFO, *PMAIN_WND_INFO;
|
|
|
|
|
2008-06-19 08:36:17 +00:00
|
|
|
/* dll exports */
|
|
|
|
wchar_t *GetTestName();
|
2008-06-19 11:57:14 +00:00
|
|
|
int GetModulesInTest(char **modules);
|
2008-06-21 19:19:22 +00:00
|
|
|
int RunTest(const char *lpTest);
|
2008-06-19 08:36:17 +00:00
|
|
|
|
2008-06-18 19:10:39 +00:00
|
|
|
|
|
|
|
/* browsewnd.c */
|
|
|
|
BOOL CALLBACK BrowseDlgProc(HWND hDlg, UINT Message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
/* misc.c */
|
2008-06-19 08:36:17 +00:00
|
|
|
HIMAGELIST InitImageList(UINT StartResource, UINT EndResource, UINT Width, UINT Height);
|
2008-06-20 11:20:26 +00:00
|
|
|
VOID DisplayMessage(LPWSTR lpMsg);
|
2008-06-18 19:10:39 +00:00
|
|
|
VOID DisplayError(INT err);
|
2008-06-19 11:57:14 +00:00
|
|
|
DWORD AnsiToUnicode(LPCSTR lpSrcStr, LPWSTR *lpDstStr);
|
2008-06-21 19:19:22 +00:00
|
|
|
DWORD UnicodeToAnsi(LPCWSTR lpSrcStr, LPSTR *lpDstStr);
|
2008-06-18 19:10:39 +00:00
|
|
|
|
|
|
|
#endif /* __WINETESTGUI_PRECOMP_H */
|