30 #ifndef ___IKPAPI_H___
31 #define ___IKPAPI_H___
35 #include "../../SysDefEx.h"
37 #include "../../PwStructs.h"
43 struct KP_DECL_INTERFACE("F023A34A-C6A9-41BA-AAF9-8D9EC329A435")
IKpAPI :
61 STDMETHOD(CreateInstance)(REFCLSID rclsid, REFIID riid,
void** ppvObject) = 0;
83 STDMETHOD(CreateInstanceEx)(REFCLSID rclsid, REFIID riid,
void** ppvObject,
84 LPARAM lParamW, LPARAM lParamL) = 0;
100 STDMETHOD(QueryInstance)(REFCLSID rclsid, REFIID riid,
void** ppvObject) = 0;
107 STDMETHOD(DeleteObject)(
void* pObject) = 0;
114 STDMETHOD(DeleteArray)(
void* pArray) = 0;
117 STDMETHOD_(DWORD, GetVersion)() = 0;
124 STDMETHOD_(LPCTSTR, GetVersionStr)() = 0;
128 STDMETHOD_(DWORD, GetCharSize)() = 0;
132 STDMETHOD_(DWORD, GetPointerSize)() = 0;
137 STDMETHOD_(DWORD, GetDebugLevel)() = 0;
141 STDMETHOD_(HWND, GetMainWindowHandle)() = 0;
146 STDMETHOD_(HIMAGELIST, GetClientIconsImageList)() = 0;
151 STDMETHOD_(LPCTSTR, GetTranslationName)() = 0;
157 STDMETHOD_(LPCTSTR, Translate)(LPCTSTR lpDefString) = 0;
162 STDMETHOD(GetNeverExpireTime)(PW_TIME* pBuf) = 0;
165 STDMETHOD(GetCurrentPwTime)(PW_TIME* pBuf) = 0;
169 STDMETHOD_(BOOL, IsFileOpen)() = 0;
170 STDMETHOD_(LPCTSTR, GetAbsoluteDatabasePath)() = 0;
172 STDMETHOD_(DWORD, GetEntryListItemCount)() = 0;
173 STDMETHOD_(DWORD, GetSelectedGroupId)() = 0;
177 STDMETHOD_(BOOL, IsFileModified)() = 0;
183 STDMETHOD(SetFileModified)(BOOL bModified) = 0;
187 STDMETHOD_(BOOL, IsDisplayingDialog)() = 0;
193 STDMETHOD(SetDisplayDialog)(BOOL bDialogDisplayed) = 0;
195 STDMETHOD(EntryListEnsureVisible)(INT nItem, BOOL bPartialOK) = 0;
202 STDMETHOD(UpdateUI)() = 0;
203 STDMETHOD(UpdateGroupTree)() = 0;
204 STDMETHOD(UpdateEntryList)() = 0;
209 STDMETHOD(UpdateToolBar)() = 0;
211 STDMETHOD(SetStatusBarText)(LPCTSTR lpText) = 0;
224 STDMETHOD(ShowDialog)(DWORD dwDialogId, DWORD dwVersion,
void* pConfig,
225 INT* pnResult,
void* pOutput) = 0;
227 STDMETHOD(AutoType)(PW_ENTRY* pEntry, LONG_PTR lFlags) = 0;
229 STDMETHOD(AddImportMenuItem)(LPCTSTR lpText, UINT uId, INT nIconId) = 0;
234 #endif // ___IKPAPI_H___