File indexing completed on 2024-06-02 05:24:48

0001 /* registry.h - registry prototypes
0002    SPDX-FileCopyrightText: 2006, 2007 g 10 Code GmbH
0003 
0004    This file is part of GpgEX.
0005 
0006    SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 /* keep this in sync with svn://cvs.gnupg.org/gpgex/trunk/src/registry.h (last checked against rev. 19) */
0010 
0011 #pragma once
0012 
0013 #include <windows.h>
0014 
0015 #ifdef __cplusplus
0016 extern "C" {
0017 #if 0
0018 }
0019 #endif
0020 #endif
0021 
0022 /* This is a helper function to load a Windows function from either of
0023    one DLLs. */
0024 HRESULT w32_shgetfolderpath(HWND a, int b, HANDLE c, DWORD d, LPSTR e);
0025 
0026 /* Return a string from the Win32 Registry or NULL in case of error.
0027    Caller must release the return value.  A NULL for root is an alias
0028    for HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE in turn.  */
0029 char *read_w32_registry_string(const char *root, const char *dir, const char *name);
0030 
0031 #ifdef __cplusplus
0032 #if 0
0033 {
0034 #endif
0035 }
0036 #endif