2014-02-05 18:17:27 +00:00
|
|
|
#ifndef _APPWIZ_H
|
|
|
|
#define _APPWIZ_H
|
|
|
|
|
2014-01-19 10:17:54 +00:00
|
|
|
#include <config.h>
|
|
|
|
#include <wine/port.h>
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
2014-01-19 10:17:54 +00:00
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <winnls.h>
|
2007-10-08 15:56:31 +00:00
|
|
|
#include <shlobj.h>
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
#include <wine/debug.h>
|
2014-01-19 10:17:54 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(appwiz);
|
2013-05-19 21:21:20 +00:00
|
|
|
|
2007-10-08 15:56:31 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
2007-10-04 23:51:10 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WCHAR szTarget[MAX_PATH];
|
|
|
|
WCHAR szWorkingDirectory[MAX_PATH];
|
|
|
|
WCHAR szDescription[MAX_PATH];
|
|
|
|
WCHAR szLinkName[MAX_PATH];
|
2009-08-15 11:14:07 +00:00
|
|
|
} CREATE_LINK_CONTEXT, *PCREATE_LINK_CONTEXT;
|
2007-10-04 23:51:10 +00:00
|
|
|
|
2004-06-18 20:43:44 +00:00
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
2007-10-03 17:50:43 +00:00
|
|
|
/* createlink.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
WelcomeDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
FinishDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
LONG CALLBACK
|
|
|
|
NewLinkHere(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
|
|
|
|
|
2016-03-04 15:43:31 +00:00
|
|
|
/* removestartmenuitems.c */
|
|
|
|
LONG CALLBACK
|
|
|
|
ConfigStartMenu(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
|
|
|
|
|
2004-06-18 20:43:44 +00:00
|
|
|
void ShowLastWin32Error(HWND hWndOwner);
|
|
|
|
|
2013-05-19 21:21:20 +00:00
|
|
|
typedef enum {
|
|
|
|
ADDON_GECKO,
|
|
|
|
ADDON_MONO
|
|
|
|
} addon_t;
|
|
|
|
|
2014-10-30 20:50:30 +00:00
|
|
|
BOOL install_addon(addon_t, HWND hwnd_parent) DECLSPEC_HIDDEN;
|
2013-05-19 21:21:20 +00:00
|
|
|
|
|
|
|
extern HINSTANCE hInst DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
static inline void *heap_alloc(size_t len)
|
|
|
|
{
|
|
|
|
return HeapAlloc(GetProcessHeap(), 0, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void *heap_realloc(void *mem, size_t len)
|
|
|
|
{
|
|
|
|
return HeapReAlloc(GetProcessHeap(), 0, mem, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL heap_free(void *mem)
|
|
|
|
{
|
|
|
|
return HeapFree(GetProcessHeap(), 0, mem);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline WCHAR *heap_strdupAtoW(const char *str)
|
|
|
|
{
|
|
|
|
WCHAR *ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
size_t len;
|
|
|
|
|
|
|
|
len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
|
|
|
|
ret = heap_alloc(len*sizeof(WCHAR));
|
|
|
|
if(ret)
|
|
|
|
MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-02-05 18:17:27 +00:00
|
|
|
#endif /* _APPWIZ_H */
|