home *** CD-ROM | disk | FTP | other *** search
- /*
- ----------------------------------------------------------------------
- | CUSTOMBAR PLUGIN SDK
- | PLUGIN API DEFINITIONS
- |
- | This library is distributed in the hope that it will be useful,
- | but WITHOUT ANY WARRANTY; without even the implied warranty of
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- |
- | Copyright (C) 2002-2004 Lizardsoft. All Rights Reserved.
- ---------------------------------------------------------------------- */
-
- #if !defined(PLUGININFOH_HHH_H_H_HHH___INCLUDED_)
- #define PLUGININFOH_HHH_H_H_HHH___INCLUDED_
-
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
-
- #include "datalib.h"
-
- typedef UNIVAR P_UNIVAL;
-
- #define PL_MAXSTRINGSIZE 5012
- #define PL_MAXFUNCNAME 30
- #define PL_MAXPLUGNAME 30
- #define PL_MAXARRAYNAME 30
-
- struct PLUGIN_CALLINFO
- {
- int Error;
- };
-
- struct PLUGIN_FUNC
- {
- char *Name; // exact function name (case sensitive)
- char *ParamTypes; // string defining parameter types (eg. "fiisi"). ParamAmt characters are parameter types, last character is return type.
- int ParamAmt; // amount of parameters function takes
- int ParamAmtOpt; // amount of parameters that are optional (ie not specifying them won't crash anything)
-
- // easy way to set function information
- void SetInfo( char *FuncName, char *FuncParamTypes, int FuncParamAmount, int FuncParamAmountOpt = 0 )
- {
- Name = FuncName;
- ParamTypes = FuncParamTypes;
- ParamAmt = FuncParamAmount;
- ParamAmtOpt = FuncParamAmountOpt;
- }
- };
-
-
- struct PLUGIN_INFO
- {
- char *Name; // plugin name
- char *ObjectName; // identifier used to reference plugin in settings files, no spaces allowed (eg. audioplayer)
- char *Author; // plugin author
- char *Copyright; // copyright string (set to NULL if none)
- char *Website; // plugin website (set to NULL if none)
- char *Email; // plugin author's e-mail (set to NULL if none)
- char *Version; // plugin version string (eg. "v1.2a")
-
- HMODULE hModule; // plugin handle, filled in by program
-
- PLUGIN_FUNC *FuncInfo; // function manifest (1D array)
- int FuncAmt; // amount of entries in FuncInfo array
-
- char *Reserved1;
- char *Reserved2;
- };
-
-
- #endif // !defined(PLUGININFOH_HHH_H_H_HHH___INCLUDED_)