ReactOS 0.4.15-dev-5666-gc548b97
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[MAX_PATH];
31 WCHAR szWorkingDirectory[MAX_PATH];
33 WCHAR szOrigin[MAX_PATH];
34 WCHAR szOldFile[MAX_PATH];
35 WCHAR szLinkName[MAX_PATH];
37
38extern HINSTANCE hApplet;
39
40/* createlink.c */
43
46
48NewLinkHere(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
49
50/* removestartmenuitems.c */
52ConfigStartMenu(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
53
54void ShowLastWin32Error(HWND hWndOwner);
55
56typedef enum {
60
62
64
65static inline void *heap_alloc(size_t len)
66{
67 return HeapAlloc(GetProcessHeap(), 0, len);
68}
69
70static inline void *heap_realloc(void *mem, size_t len)
71{
72 return HeapReAlloc(GetProcessHeap(), 0, mem, len);
73}
74
75static inline BOOL heap_free(void *mem)
76{
77 return HeapFree(GetProcessHeap(), 0, mem);
78}
79
80static inline WCHAR *heap_strdupAtoW(const char *str)
81{
82 WCHAR *ret = NULL;
83
84 if(str) {
85 size_t len;
86
87 len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
88 ret = heap_alloc(len*sizeof(WCHAR));
89 if(ret)
91 }
92
93 return ret;
94}
95
96#endif /* _APPWIZ_H */
void ShowLastWin32Error(HWND hWndOwner)
Definition: winutils.c:11
static WCHAR * heap_strdupAtoW(const char *str)
Definition: appwiz.h:80
BOOL install_addon(addon_t, HWND hwnd_parent) DECLSPEC_HIDDEN
Definition: addons.c:431
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
HINSTANCE hInst DECLSPEC_HIDDEN
INT_PTR CALLBACK FinishDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: createlink.c:364
static BOOL heap_free(void *mem)
Definition: appwiz.h:75
static void * heap_realloc(void *mem, size_t len)
Definition: appwiz.h:70
addon_t
Definition: appwiz.h:56
@ ADDON_GECKO
Definition: appwiz.h:57
@ ADDON_MONO
Definition: appwiz.h:58
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:227
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