- Код: выделить все
void __stdcall ListSetDefaultParams(ListDefaultParamStruct* dps);
(в хелпе она описана как FsSetDefaultParams, это Гислера ошибка)
или
- Код: выделить все
procedure ListSetDefaultParams(dps:pListDefaultParamStruct); stdcall;
Description of parameters:
dps This structure of type ListDefaultParamStruct currently contains the version number of the plugin interface, and the suggested location for the settings file (ini file). It is recommended to store any plugin-specific information either directly in that file, or in that directory under a different name. Make sure to use a unique header when storing data in this file, because it is shared by other file system plugins! If your plugin needs more than 1kbyte of data, you should use your own ini file because ini files are limited to 64k.
Return value:
The function has no return value:
Important note:
This function is only called in Total Commander 5.51 and later. The plugin version will be >= 1.2.
ListNotificaListDefaultParamStruct is passed to ListSetDefaultParams to inform the plugin about the current plugin interface version and ini file location.
Declaration:
- Код: выделить все
typedef struct {
int size;
DWORD PluginInterfaceVersionLow;
DWORD PluginInterfaceVersionHi;
char DefaultIniName[MAX_PATH];
} ListDefaultParamStruct;
Description of struct members:
size The size of the structure, in bytes. Later revisions of the plugin interface may add more structure members, and will adjust this size field accordingly.
PluginInterfaceVersionLow Low value of plugin interface version. This is the value after the comma, multiplied by 100! Example. For plugin interface version 1.3, the low DWORD is 30 and the high DWORD is 1.
PluginInterfaceVersionHi High value of plugin interface version.
DefaultIniName Suggested location+name of the ini file where the plugin could store its data. This is a fully qualified path+file name, and will be in the same directory as the wincmd.ini. It's recommended to store the plugin data in this file or at least in this directory, because the plugin directory or the Windows directory may not be writable!