ReactOS 0.4.15-dev-7660-g0086d05
appwiz.h
Go to the documentation of this file.
1#ifndef _APPWIZ_H
2#define _APPWIZ_H
3
4#include <config.h>
5#include <wine/port.h>
6
7#include <stdarg.h>
8
9#define WIN32_NO_STATUS
10#define _INC_WINDOWS
11#define COM_NO_WINDOWS_H
12
13#define COBJMACROS
14
15#include <windef.h>
16#include <winbase.h>
17#include <winreg.h>
18#include <winnls.h>
19#include <shlobj.h>
20#include <intshcut.h>
21#include <shlwapi.h>
22
23#include <wine/debug.h>
25
26#include "resource.h"
27
28typedef struct
29{
30 WCHAR szTarget[2 * MAX_PATH];
31 WCHAR szWorkingDirectory[MAX_PATH];
33 WCHAR szArguments[2 * MAX_PATH];
34 WCHAR szOrigin[MAX_PATH];
35 WCHAR szOldFile[MAX_PATH];
36 WCHAR szLinkName[MAX_PATH];
38
39extern HINSTANCE hApplet;
40
41/* createlink.c */
44
47
49NewLinkHere(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
50
51/* removestartmenuitems.c */
53ConfigStartMenu(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
54
55void ShowLastWin32Error(HWND hWndOwner);
56
57typedef enum {
61
63
65
66static inline void *heap_alloc(size_t len)
67{
68 return HeapAlloc(GetProcessHeap(), 0, len);
69}
70
71static inline void *heap_realloc(void *mem, size_t len)
72{
73 return HeapReAlloc(GetProcessHeap(), 0, mem, len);
74}
75
76static inline BOOL heap_free(void *mem)
77{
78 return HeapFree(GetProcessHeap(), 0, mem);
79}
80
81static inline WCHAR *heap_strdupAtoW(const char *str)
82{
83 WCHAR *ret = NULL;
84
85 if(str) {
86 size_t len;
87
88 len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
89 ret = heap_alloc(len*sizeof(WCHAR));
90 if(ret)
92 }
93
94 return ret;
95}
96
97#endif /* _APPWIZ_H */
void ShowLastWin32Error(HWND hWndOwner)
Definition: winutils.c:11
static WCHAR * heap_strdupAtoW(const char *str)
Definition: appwiz.h:81
BOOL install_addon(addon_t, HWND hwnd_parent) DECLSPEC_HIDDEN
Definition: addons.c:450
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
HINSTANCE hInst DECLSPEC_HIDDEN
INT_PTR CALLBACK FinishDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: createlink.c:387
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
static void * heap_realloc(void *mem, size_t len)
Definition: appwiz.h:71
addon_t
Definition: appwiz.h:57
@ ADDON_GECKO
Definition: appwiz.h:58
@ ADDON_MONO
Definition: appwiz.h:59
LONG CALLBACK ConfigStartMenu(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
INT_PTR CALLBACK WelcomeDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: createlink.c:230
LONG CALLBACK NewLinkHere(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
struct CREATE_LINK_CONTEXT * PCREATE_LINK_CONTEXT
HINSTANCE hApplet
Definition: access.c:17
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static HWND hwnd_parent
Definition: dce.c:36
#define NULL
Definition: types.h:112
static const WCHAR szDescription[]
Definition: provider.c:55
#define GetProcessHeap()
Definition: compat.h:736
#define CP_ACP
Definition: compat.h:109
#define HeapAlloc
Definition: compat.h:733
#define HeapReAlloc
Definition: compat.h:734
#define MAX_PATH
Definition: compat.h:34
#define HeapFree(x, y, z)
Definition: compat.h:735
#define CALLBACK
Definition: compat.h:35
#define MultiByteToWideChar
Definition: compat.h:110
HINSTANCE hInst
Definition: dxdiag.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
GLenum GLsizei len
Definition: glext.h:6722
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
const WCHAR * str
Definition: mem.c:156
int32_t INT_PTR
Definition: typedefs.h:64
int ret
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
__wchar_t WCHAR
Definition: xmlstorage.h:180