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







IKpPlugin Struct Referenceabstract

Interface to a plugin object. More...

#include <IKpPlugin.h>

Inheritance diagram for IKpPlugin:
IKpUnknown

Public Member Functions

virtual BOOL OnMessage (DWORD dwCode, LPARAM lParamW, LPARAM lParamL)=0
 Plugins are notified of events using this method. More...
 
virtual LPCTSTR GetProperty (LPCTSTR lpName)=0
 Get a plugin property. More...
 
virtual HRESULT SetProperty (LPCTSTR lpName, LPCTSTR lpValue)=0
 Set a plugin property. More...
 
virtual DWORD GetMenuItemCount ()=0
 Get the number of main menu items provided by the plugin. More...
 
virtual KP_MENU_ITEMGetMenuItems ()=0
 Get a pointer to all main menu items provided by the plugin. More...
 
- Public Member Functions inherited from IKpUnknown
virtual HRESULT QueryInterface (REFIID riid, void **ppvObject)=0
 COM infrastructure, provides access to all interfaces supported by this object. More...
 
virtual ULONG AddRef ()=0
 COM infrastructure, increments the reference count for this object. More...
 
virtual ULONG Release ()=0
 COM infrastructure, decrements the reference count for this object and eventually deletes it. More...
 

Detailed Description

Interface to a plugin object.

Plugins typically provide this interface.

Member Function Documentation

◆ GetMenuItemCount()

virtual DWORD IKpPlugin::GetMenuItemCount ( )
pure virtual

Get the number of main menu items provided by the plugin.

◆ GetMenuItems()

virtual KP_MENU_ITEM* IKpPlugin::GetMenuItems ( )
pure virtual

Get a pointer to all main menu items provided by the plugin.

Returns
Pointer to the first item in an array of menu items.
The menu items must be stored statically, KeePass will not delete the returned pointer.

◆ GetProperty()

virtual LPCTSTR IKpPlugin::GetProperty ( LPCTSTR  lpName)
pure virtual

Get a plugin property.

Returns
Property value.
If the plugin doesn't know the property with the specified name, it should return NULL.
The returned string must be stored statically, KeePass will not delete the returned pointer.

◆ OnMessage()

virtual BOOL IKpPlugin::OnMessage ( DWORD  dwCode,
LPARAM  lParamW,
LPARAM  lParamL 
)
pure virtual

Plugins are notified of events using this method.

Returns
In general you should always return TRUE. Only return FALSE if you want to block further code execution in KeePass in some cases.

◆ SetProperty()

virtual HRESULT IKpPlugin::SetProperty ( LPCTSTR  lpName,
LPCTSTR  lpValue 
)
pure virtual

Set a plugin property.

This method is allowed to ignore properties it doesn't know (i.e. it doesn't need to implement a generic string dictionary).


The documentation for this struct was generated from the following file:

Documentation generated with Doxygen.





Get KeePass