comparison packaging/exdll.h @ 1010:1c1964c27b39 runafterinstall

(issue54) commit work in progress on start after installation
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 02 Sep 2014 14:25:40 +0200
parents
children fd85a02d771d
comparison
equal deleted inserted replaced
1004:7dff5c0c569c 1010:1c1964c27b39
1 /* exdll.h for use with gpg4win
2 * Copyright (C) 1999-2005 Nullsoft, Inc.
3 *
4 * This license applies to everything in the NSIS package, except
5 * where otherwise noted.
6 *
7 * This software is provided 'as-is', without any express or implied
8 * warranty. In no event will the authors be held liable for any
9 * damages arising from the use of this software.
10 *
11 * Permission is granted to anyone to use this software for any
12 * purpose, including commercial applications, and to alter it and
13 * redistribute it freely, subject to the following restrictions:
14 *
15 * 1. The origin of this software must not be misrepresented; you must
16 * not claim that you wrote the original software. If you use this
17 * software in a product, an acknowledgment in the product
18 * documentation would be appreciated but is not required.
19 *
20 * 2. Altered source versions must be plainly marked as such, and must
21 * not be misrepresented as being the original software.
22 *
23 * 3. This notice may not be removed or altered from any source
24 * distribution.
25 ************************************************************
26 * 2005-11-14 wk Applied license text to orginal exdll.h file from
27 * NSIS 2.0.4 and did some formatting changes.
28 */
29
30 #ifndef _EXDLL_H_
31 #define _EXDLL_H_
32
33 /* only include this file from one place in your DLL. (it is all
34 static, if you use it in two places it will fail) */
35
36 #define EXDLL_INIT() { \
37 g_stringsize=(unsigned int)string_size; \
38 g_stacktop=stacktop; \
39 g_variables=variables; }
40
41 /* For page showing plug-ins */
42 #define WM_NOTIFY_OUTER_NEXT (WM_USER+0x8)
43 #define WM_NOTIFY_CUSTOM_READY (WM_USER+0xd)
44 #define NOTIFY_BYE_BYE 'x'
45
46 typedef struct _stack_t {
47 struct _stack_t *next;
48 char text[1]; /* This should be the length of string_size. */
49 } stack_t;
50
51
52 static unsigned int g_stringsize;
53 static stack_t **g_stacktop;
54 static char *g_variables;
55
56 enum
57 {
58 INST_0, // $0
59 INST_1, // $1
60 INST_2, // $2
61 INST_3, // $3
62 INST_4, // $4
63 INST_5, // $5
64 INST_6, // $6
65 INST_7, // $7
66 INST_8, // $8
67 INST_9, // $9
68 INST_R0, // $R0
69 INST_R1, // $R1
70 INST_R2, // $R2
71 INST_R3, // $R3
72 INST_R4, // $R4
73 INST_R5, // $R5
74 INST_R6, // $R6
75 INST_R7, // $R7
76 INST_R8, // $R8
77 INST_R9, // $R9
78 INST_CMDLINE, // $CMDLINE
79 INST_INSTDIR, // $INSTDIR
80 INST_OUTDIR, // $OUTDIR
81 INST_EXEDIR, // $EXEDIR
82 INST_LANG, // $LANGUAGE
83 __INST_LAST
84 };
85
86 typedef struct {
87 int autoclose;
88 int all_user_var;
89 int exec_error;
90 int abort;
91 int exec_reboot;
92 int reboot_called;
93 int XXX_cur_insttype; /* deprecated */
94 int XXX_insttype_changed; /* deprecated */
95 int silent;
96 int instdir_error;
97 int rtl;
98 int errlvl;
99 } exec_flags_t;
100
101 typedef struct {
102 exec_flags_t *exec_flags;
103 int (__stdcall *ExecuteCodeSegment)(int, HWND);
104 } extra_parameters_t;
105
106 #endif//_EXDLL_H_

http://wald.intevation.org/projects/trustbridge/