36 |
|
|
37 |
#define rc_ok(rc) ((rc) == ERROR_SUCCESS) |
#define rc_ok(rc) ((rc) == ERROR_SUCCESS) |
38 |
|
|
|
static gpg_filetype gpg_filetypes[] = { |
|
|
{"GPG Detached Signature", ".sig", 1}, |
|
|
{"GPG Encrypted Data", ".gpg", 2}, |
|
|
{"GPG Armored Data", ".asc", 2}, |
|
|
{0} |
|
|
}; |
|
39 |
|
|
40 |
|
|
41 |
struct reg_hotkey_s reg_hotkeys[] = { |
struct reg_hotkey_s reg_hotkeys[] = { |
155 |
Return value: 0 on success. */ |
Return value: 0 on success. */ |
156 |
int |
int |
157 |
regist_inst_winpt (int with_ext, int *created) |
regist_inst_winpt (int with_ext, int *created) |
158 |
{ |
{ |
159 |
HKEY reg; |
HKEY reg; |
160 |
char *p = NULL; |
char *p = NULL; |
161 |
char modpath[MAX_PATH+1]; |
char modpath[MAX_PATH+1]; |
162 |
int rc, i, id, n = 0; |
int rc, i, id, n = 0; |
163 |
|
|
164 |
|
gpg_filetype gpg_filetypes[] = { |
165 |
|
{_("GPG Detached Signature"), ".sig", 1}, |
166 |
|
{_("GPG Encrypted Data"), ".gpg", 2}, |
167 |
|
{_("GPG Armored Data"), ".asc", 2}, |
168 |
|
{0} |
169 |
|
}; |
170 |
|
|
171 |
if (created) |
if (created) |
172 |
*created = 0; |
*created = 0; |
173 |
|
|
226 |
if (created) |
if (created) |
227 |
*created = 1; |
*created = 1; |
228 |
RegCloseKey (reg); |
RegCloseKey (reg); |
229 |
if (n) |
if (n > 0 || is_gpgee_installed ()) |
230 |
set_reg_entry (HKEY_CURRENT_USER, WINPT_REG, "Extensions", "1"); |
set_reg_entry (HKEY_CURRENT_USER, WINPT_REG, "Extensions", "1"); |
231 |
if ((n=GetModuleFileName (NULL, modpath, MAX_PATH-1)) > 0) { |
if ((n=GetModuleFileName (NULL, modpath, MAX_PATH-1)) > 0) { |
232 |
while (n-- > 0) { |
while (n-- > 0) { |