Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35134773
w32-util.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
w32-util.h
View Options
/* Copyright (C) 2018 by Intevation GmbH <info@intevation.de>
*
* This file is Free Software under the GNU GPL (v>=2)
* and comes with ABSOLUTELY NO WARRANTY!
* See LICENSE.txt for details.
*/
#include
<string>
/* The Registry key used by Gpg4win. */
#ifdef _WIN64
# define GPG4WIN_REGKEY_2 "Software\\Wow6432Node\\GNU\\GnuPG"
#else
# define GPG4WIN_REGKEY_2 "Software\\GNU\\GnuPG"
#endif
#ifdef _WIN64
# define GPG4WIN_REGKEY_3 "Software\\Wow6432Node\\Gpg4win"
#else
# define GPG4WIN_REGKEY_3 "Software\\Gpg4win"
#endif
#define GPGOL_REG_PATH "Software\\GNU\\GpgOL"
namespace
W32
{
/* Get the locale dir of Gpg4win. */
std
::
string
getGpg4winLocaleDir
();
/** Get the Gpg4win Install directory.
*
* Looks for the Gpg4win 3.x registry key.
* And checks that the directory can be read.
*
* @returns an empty string if no dir could be found.
*
**/
std
::
string
getGpg4winDir
();
/** Read a registry string value. If root is null first
* HKEY_CURRENT_USER is searched and then it falls back
* to HKEY_LOCAL_MACHINE . */
std
::
string
readRegStr
(
const
char
*
root
,
const
char
*
path
,
const
char
*
key
);
bool
writeRegStr
(
const
char
*
root
,
const
char
*
path
,
const
char
*
key
,
const
char
*
val
);
/** Call this to switch to the W64 registry. */
void
setW64RegistryMode
(
bool
value
);
bool
isElevated
();
}
// namespace W32
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Feb 1, 7:55 PM (35 m, 44 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
31/8d/74df0c2a5a1cb00925124f202926
Attached To
rGTO Gpg4win-Tools
Event Timeline
Log In to Comment