UDK 3.2.7 C/C++ API Reference

registry/regtype.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of the LibreOffice project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * This file incorporates work covered by the following license notice:
00010  *
00011  *   Licensed to the Apache Software Foundation (ASF) under one or more
00012  *   contributor license agreements. See the NOTICE file distributed
00013  *   with this work for additional information regarding copyright
00014  *   ownership. The ASF licenses this file to you under the Apache
00015  *   License, Version 2.0 (the "License"); you may not use this file
00016  *   except in compliance with the License. You may obtain a copy of
00017  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
00018  */
00019 
00020 #ifndef _REGISTRY_REGTYPE_H_
00021 #define _REGISTRY_REGTYPE_H_
00022 
00023 #include <sal/types.h>
00024 #include <sal/udkversion.h>
00025 
00026 // version number of the library. This number is used for the load on call
00027 // mechanism and must be modifed when the library will be upgraded to a new version.
00028 #define LIBRARY_VERSION SAL_UDK_MAJOR
00029 
00031 typedef void*       RegHandle;
00032 
00034 typedef void*       RegKeyHandle;
00035 
00037 typedef void*       RegValue;
00038 
00045 typedef sal_uInt16  RegAccessMode;
00046 
00048 #define REG_READONLY        0x0001
00049 
00050 #define REG_READWRITE       0x0002
00051 
00058 enum RegKeyType
00059 {
00061     RG_KEYTYPE,
00063     RG_LINKTYPE
00064 };
00065 
00074 enum RegValueType
00075 {
00077     RG_VALUETYPE_NOT_DEFINED,
00079     RG_VALUETYPE_LONG,
00081     RG_VALUETYPE_STRING,
00083     RG_VALUETYPE_UNICODE,
00085     RG_VALUETYPE_BINARY,
00087     RG_VALUETYPE_LONGLIST,
00089     RG_VALUETYPE_STRINGLIST,
00091     RG_VALUETYPE_UNICODELIST
00092 };
00093 
00095 enum RegError
00096 {
00098     REG_NO_ERROR,
00100     REG_INTERNAL_ERROR,
00101 
00103     REG_REGISTRY_NOT_OPEN,
00105     REG_REGISTRY_NOT_EXISTS,
00107     REG_REGISTRY_READONLY,
00109     REG_DESTROY_REGISTRY_FAILED,
00113     REG_CANNOT_OPEN_FOR_READWRITE,
00117     REG_INVALID_REGISTRY,
00118 
00120     REG_KEY_NOT_OPEN,
00122     REG_KEY_NOT_EXISTS,
00124     REG_CREATE_KEY_FAILED,
00126     REG_DELETE_KEY_FAILED,
00130     REG_INVALID_KEYNAME,
00132     REG_INVALID_KEY,
00133 
00135     REG_VALUE_NOT_EXISTS,
00137     REG_SET_VALUE_FAILED,
00139     REG_DELETE_VALUE_FAILED,
00141     REG_INVALID_VALUE,
00142 
00144     REG_MERGE_ERROR,
00148     REG_MERGE_CONFLICT,
00149 
00153     REG_DETECT_RECURSION,
00157     REG_INVALID_LINK,
00159     REG_INVALID_LINKNAME,
00161     REG_INVALID_LINKTARGET,
00163     REG_LINKTARGET_NOT_EXIST,
00165     REG_BUFFERSIZE_TOSMALL
00166 };
00167 
00169 #define REGISTRY_CALLTYPE   SAL_CALL
00170 
00171 #endif
00172 
00173 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines