ReactOS  0.4.12-dev-918-g6c6e7b8
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 
28 typedef 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 
38 extern HINSTANCE hApplet;
39 
40 /* createlink.c */
43 
46 
48 NewLinkHere(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
49 
50 /* removestartmenuitems.c */
52 ConfigStartMenu(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
53 
54 void ShowLastWin32Error(HWND hWndOwner);
55 
56 typedef enum {
59 } addon_t;
60 
62 
64 
65 static inline void *heap_alloc(size_t len)
66 {
67  return HeapAlloc(GetProcessHeap(), 0, len);
68 }
69 
70 static inline void *heap_realloc(void *mem, size_t len)
71 {
72  return HeapReAlloc(GetProcessHeap(), 0, mem, len);
73 }
74 
75 static inline BOOL heap_free(void *mem)
76 {
77  return HeapFree(GetProcessHeap(), 0, mem);
78 }
79 
80 static 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 */
#define CP_ACP
Definition: compat.h:99
LONG CALLBACK NewLinkHere(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
#define CALLBACK
Definition: compat.h:27
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:62
static void * heap_realloc(void *mem, size_t len)
Definition: appwiz.h:70
WPARAM wParam
Definition: combotst.c:138
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
LONG CALLBACK ConfigStartMenu(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
BOOL install_addon(addon_t, HWND hwnd_parent) DECLSPEC_HIDDEN
Definition: addons.c:422
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
static HWND hwnd_parent
Definition: dce.c:36
static WCHAR * heap_strdupAtoW(const char *str)
Definition: appwiz.h:80
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:26
int ret
GLenum GLsizei len
Definition: glext.h:6722
addon_t
Definition: appwiz.h:56
struct CREATE_LINK_CONTEXT * PCREATE_LINK_CONTEXT
INT_PTR CALLBACK WelcomeDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: createlink.c:181
HINSTANCE hInst
Definition: dxdiag.c:13
#define HeapReAlloc
Definition: compat.h:393
void ShowLastWin32Error(HWND hWndOwner)
Definition: winutils.c:11
unsigned int UINT
Definition: ndis.h:50
#define MultiByteToWideChar
Definition: compat.h:100
Definition: mem.c:156
INT_PTR CALLBACK FinishDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: createlink.c:288
LPARAM lParam
Definition: combotst.c:139
#define HeapFree(x, y, z)
Definition: compat.h:394
WINE_DEFAULT_DEBUG_CHANNEL(appwiz)
HINSTANCE hApplet
Definition: access.c:17
HINSTANCE hInst DECLSPEC_HIDDEN
static const WCHAR szDescription[]
Definition: provider.c:52
static BOOL heap_free(void *mem)
Definition: appwiz.h:75