KeePass Help Center KeePass Home | Downloads | Translations | Plugins | Donate 
Help Center Home | Forums | Awards | Links 







IKpConfig.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008-2024 Dominik Reichl
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without
6  modification, are permitted provided that the following conditions
7  are met:
8 
9  * Redistributions of source code must retain the above copyright
10  notice, this list of conditions and the following disclaimer.
11  * Redistributions in binary form must reproduce the above copyright
12  notice, this list of conditions and the following disclaimer in
13  the documentation and/or other materials provided with the
14  distribution.
15 
16  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
19  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
20  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  POSSIBILITY OF SUCH DAMAGE.
28 */
29 
30 #ifndef ___IKPCONFIG_H___
31 #define ___IKPCONFIG_H___
32 
33 #pragma once
34 
35 #include "../../SysDefEx.h"
36 #include "IKpUnknown.h"
37 
38 #pragma pack(1)
39 
43 struct KP_DECL_INTERFACE("6F7B9713-FC6E-4FD6-BF55-044DF9E701B0") IKpConfig :
44  public IKpUnknown
45 {
46 public:
51  STDMETHOD_(BOOL, Get)(LPCTSTR pszField, LPTSTR pszValue) = 0;
52 
59  STDMETHOD_(BOOL, Set)(LPCTSTR pszField, LPCTSTR pszValue) = 0;
60 
62  STDMETHOD_(BOOL, GetBool)(LPCTSTR pszField, BOOL bDefault) = 0;
63 
67  STDMETHOD_(BOOL, SetBool)(LPCTSTR pszField, BOOL bValue) = 0;
68 
71  STDMETHOD(GetUserPath)(LPTSTR lpBuf, DWORD dwBufMaxChars) = 0;
72 };
73 
74 #pragma pack()
75 
76 #endif // ___IKPCONFIG_H___
Base interface from which all other interfaces must derive.
Definition: IKpUnknown.h:41
Interface to a configuration object.
Definition: IKpConfig.h:43

Documentation generated with Doxygen.





Get KeePass