Clone
ixen <ixen@copyhandler.com>
committed
on 30 Jan 06
Initial import
LoggerImprovements + 5 more
Common/CHPluginCore.h (+50)
  1 #ifndef __CHPLUGINCORE_H__
  2 #define __CHPLUGINCORE_H__
  3
  4 #include "PluginCore.h"
  5 //#include "FileObject.h"
  6
  7 // types of CH plugins
  8 //#define PT_STORAGE            2
  9
  10 //#define IMID_LOCALSTORAGE             0x0001020000000001
  11
  12 // error codes
  13 //#define EC_NOERROR            0x00000000
  14 //#define EC_SYSERROR           0x00000001
  15 //#define EC_USERBREAK  0x00000002
  16
  17 // error handling info struct
  18 /*struct _ERRORINFO
  19 {
  20         char szInfo[256];               // string with error description
  21         DWORD dwCode;           // code
  22         DWORD dwError;          // system error if any
  23 };*/
  24
  25 // storage plugins section
  26 /*struct _ENUMOBJECTS
  27 {
  28         // data passed to the enumobjects func
  29         CBaseObjectInfo* pBaseObject;   // base object
  30
  31         // ret values
  32         CObjectInfo* pObject;                   // object that has been found
  33
  34         // func
  35         bool(*pfnCallback)(_ENUMOBJECTS* pParam);
  36
  37         // other
  38         PVOID pAppParam;                                // application defined parameter
  39         PVOID pPlugParam;                               // plugin dependent parameter
  40 };*/
  41
  42 // open object modes
  43 //#define OM_READ                       0x80000000
  44 //#define OM_WRITE              0x40000000
  45 //#define OM_CREATE             0x00000001      /* create, if exists - fails */
  46 //#define OM_CREATEALWAYS       0x00000002      /* always creates the file */
  47 //#define OM_OPENEXISTING       0x00000003      /* opens only if exists */
  48 //#define OM_OPENALWAYS 0x00000004      /* always opens the object */
  49
  50 #endif