2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) INRIA - Allan CORNET
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 /*--------------------------------------------------------------------------*/
18 #include "BOOL.h" /* BOOL */
21 * WindowsQueryRegistry
22 * Query a value in a registry key
23 * @param[in] ParamIn1 (HKEY)
24 * @param[in] ParamIn2 (SUBKEY)
25 * @param[in] ParamIn3 (value name)
26 * @param[out] ParamOut1 (value REG_SZ format)
27 * @param[out] ParamOut2 (value int)
28 * @param[out] OuputIsREG_SZ
29 * @return TRUE or FALSE
31 BOOL WindowsQueryRegistry(char *ParamIn1, char *ParamIn2, char *ParamIn3, char *ParamOut1, int *ParamOut2, BOOL *OuputIsREG_SZ);
34 * WindowsQueryRegistryValuesList
35 * Query a list of values in a registry key
36 * @param[in] ParamIn1 (HKEY)
37 * @param[in] ParamIn2 (SUBKEY)
39 * @param[out] ListKeys (values)
40 * @return TRUE or FALSE
42 BOOL WindowsQueryRegistryValuesList(char *ParamIn1, char *ParamIn2, int dimMax, char **ListKeys);
45 * WindowsQueryRegistryKeysList
46 * Query a list of values in a registry key
47 * @param[in] ParamIn1 (HKEY)
48 * @param[in] ParamIn2 (SUBKEY)
50 * @param[out] ListKeys (values)
51 * @return TRUE or FALSE
53 BOOL WindowsQueryRegistryKeysList(char *ParamIn1, char *ParamIn2, int dimMax, char **ListKeys);
57 * WindowsQueryRegistryNumberOfElementsInList
58 * get numbers of elements in a list
59 * @param[in] ParamIn1 (HKEY)
60 * @param[in] ParamIn2 (SUBKEY)
62 * @return TRUE or FALSE
64 BOOL WindowsQueryRegistryNumberOfValuesInList(char *ParamIn1, char *ParamIn2, int *Number);
67 * WindowsQueryRegistryNumberOfKeysInList
68 * get numbers of Key in a list
69 * @param[in] ParamIn1 (HKEY)
70 * @param[in] ParamIn2 (SUBKEY)
72 * @return TRUE or FALSE
74 BOOL WindowsQueryRegistryNumberOfKeysInList(char *ParamIn1, char *ParamIn2, int *Number);
77 * GetHkeyrootFromString
78 * convert string value to HKEY
79 * @param[in] string example "HKEY_CLASSES_ROOT"
82 HKEY GetHkeyrootFromString(char *string);
85 #endif /* __REGISTY_H__ */
86 /*--------------------------------------------------------------------------*/