62{
63#ifdef __REACTOS__
64 ACTCTXW
ActCtx = {
sizeof(ACTCTX), ACTCTX_FLAG_RESOURCE_NAME_VALID};
68#endif
74
76 return applet;
77
80 {
82 {
83 WARN(
"Cannot allocate memory for applet path\n");
84 goto theError;
85 }
87 }
88 else
89 {
90 WARN(
"Cannot expand applet path\n");
91 goto theError;
92 }
93
95
96#ifdef __REACTOS__
100 ActCtx.lpSource = fileBuffer;
102 applet->hActCtx = CreateActCtx(&
ActCtx);
104#endif
105
108 goto theError;
109 }
112 goto theError;
113 }
115 WARN(
"Init of applet has failed\n");
116 goto theError;
117 }
119 WARN(
"No subprogram in applet\n");
121 goto theError;
122 }
123
126
127 for (
i = 0;
i < applet->
count;
i++) {
130 applet->
info[
i].helpfile[0] = 0;
131
132
133
134
135
138#ifdef __REACTOS__
140#endif
141
150
151
152
153
154
156
157
158
159
161
164
168
169 applet->
info[
i].data = newinfo.lData;
171 if (!newinfo.hIcon)
WARN(
"couldn't get icon for applet %u\n",
i);
172 applet->
info[
i].icon = newinfo.hIcon;
173 }
176 memcpy(applet->
info[
i].name, newinfo.szName,
sizeof(newinfo.szName));
178 memcpy(applet->
info[
i].info, newinfo.szInfo,
sizeof(newinfo.szInfo));
179 memcpy(applet->
info[
i].helpfile, newinfo.szHelpFile,
sizeof(newinfo.szHelpFile));
180 } else {
191 applet->
info[
i].helpfile,
192 sizeof(applet->
info[
i].helpfile) /
sizeof(
WCHAR));
193 }
194 }
195 }
196
197#ifdef __REACTOS__
198 if (bActivated)
200#endif
201
202#ifndef __REACTOS__
204#endif
205
206 return applet;
207
208 theError:
213}
static void list_add_head(struct list_entry *head, struct list_entry *entry)
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
struct tagNEWCPLINFOA NEWCPLINFOA
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
#define MultiByteToWideChar
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
BOOL WINAPI PathIsFileSpecW(LPCWSTR lpszPath)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ PCWSTR _Out_ PVOID * ActCtx
#define memcpy(s1, s2, n)
static const WCHAR szName[]
struct applet_info info[1]
#define FIELD_OFFSET(t, f)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define MAKEINTRESOURCEW(i)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)