Interface to an object wrapping a command line option.
More...
#include <IKpCommandLineOption.h>
|
| virtual LPCTSTR | GetOptionName ()=0 |
| | Returns the option's name (with which the object was initialized). More...
|
| |
| virtual BOOL | IsOption (LPCTSTR lpArgument)=0 |
| | Determine whether a given command line argument is in the form of the wrapped option. More...
|
| |
| virtual LPTSTR | GetOptionValue (LPCTSTR lpArgument)=0 |
| | If the given argument is in the form of the wrapped option, this method returns its value. More...
|
| |
| virtual DWORD | GetOptionValueOffset ()=0 |
| | Returns the zero-based offset of possible values for this option. More...
|
| |
| 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...
|
| |
Interface to an object wrapping a command line option.
Use IKpAPI::CreateInstanceEx to create an object providing this interface; use CLSID_KpCommandLineOption as CLSID, 0 as lParamW, and a command line option name string pointer as lParamL.
◆ GetOptionName()
| virtual LPCTSTR IKpCommandLineOption::GetOptionName |
( |
| ) |
|
|
pure virtual |
Returns the option's name (with which the object was initialized).
- Returns
- This string is static in KeePass, do not delete it.
◆ GetOptionValue()
| virtual LPTSTR IKpCommandLineOption::GetOptionValue |
( |
LPCTSTR |
lpArgument | ) |
|
|
pure virtual |
If the given argument is in the form of the wrapped option, this method returns its value.
- Returns
- The returned string must be deleted using IKpAPI::DeleteArray.
◆ GetOptionValueOffset()
| virtual DWORD IKpCommandLineOption::GetOptionValueOffset |
( |
| ) |
|
|
pure virtual |
Returns the zero-based offset of possible values for this option.
◆ IsOption()
| virtual BOOL IKpCommandLineOption::IsOption |
( |
LPCTSTR |
lpArgument | ) |
|
|
pure virtual |
Determine whether a given command line argument is in the form of the wrapped option.
The documentation for this struct was generated from the following file: