int __stdcall ModuleEntry ( int nFunctionID, void *pParams ) { switch ( nFunctionID ) { case FID_INITIALIZE: return OnInitialize ((StartupInfo*)pParams); case FID_FINALIZE: return OnFinalize (); case FID_QUERYARCHIVE: return OnQueryArchive ((QueryArchiveStruct*)pParams); case FID_STARTOPERATION: return OnStartOperation ((OperationStruct*)pParams); case FID_ENDOPERATION: return OnEndOperation ((OperationStruct*)pParams); case FID_GETARCHIVEMODULEINFO: return OnGetArchiveModuleInfo ((ArchiveModuleInfo*)pParams); case FID_GETARCHIVEITEM: return OnGetArchiveItem((GetArchiveItemStruct*)pParams); case FID_FREEARCHIVEITEM: return OnFreeArchiveItem((FreeArchiveItemStruct*)pParams); case FID_EXTRACT: return OnExtract ((ExtractStruct*)pParams); case FID_TEST: return OnTest ((TestStruct*)pParams); case FID_GETDEFAULTCOMMAND: return OnGetDefaultCommand ((GetDefaultCommandStruct*)pParams); case FID_DELETE: return OnDelete ((DeleteStruct*)pParams); case FID_ADD: return OnAdd ((AddStruct*)pParams); case FID_CREATEARCHIVE: case FID_OPENARCHIVE: return OnOpenCreateArchive ((OpenCreateArchiveStruct*)pParams); case FID_CONFIGUREFORMAT: return OnConfigureFormat((ConfigureFormatStruct*)pParams); case FID_CLOSEARCHIVE: return OnCloseArchive((CloseArchiveStruct*)pParams); } return NAERROR_NOTIMPLEMENTED; }
int __stdcall PluginEntry ( int nFunctionID, void *pParams ) { switch ( nFunctionID ) { case FID_INITIALIZE: return OnInitialize ((StartupInfo*)pParams); case FID_FINALIZE: return OnFinalize (); case FID_QUERYARCHIVE: return OnQueryArchive ((QueryArchiveStruct*)pParams); case FID_OPENARCHIVE: return OnOpenArchive ((OpenArchiveStruct*)pParams); case FID_CLOSEARCHIVE: return OnCloseArchive ((CloseArchiveStruct*)pParams); case FID_FINALIZEARCHIVE: return OnFinalizeArchive ((AceArchive*)pParams); case FID_GETARCHIVEPLUGININFO: return OnGetArchivePluginInfo ((ArchivePluginInfo*)pParams); case FID_GETARCHIVEITEM: return OnGetArchiveItem ((GetArchiveItemStruct*)pParams); case FID_GETARCHIVEFORMAT: return OnGetArchiveFormat ((GetArchiveFormatStruct*)pParams); case FID_EXTRACT: return OnExtract ((ExtractStruct*)pParams); case FID_GETDEFAULTCOMMAND: return OnGetDefaultCommand ((GetDefaultCommandStruct*)pParams); case FID_ADD: return OnAdd ((AddStruct*)pParams); case FID_DELETE: return OnDelete ((DeleteStruct*)pParams); case FID_CREATEARCHIVE: return OnCreateArchive ((CreateArchiveStruct*)pParams); } return NAERROR_NOTIMPLEMENTED; }
int __stdcall ModuleEntry ( int nFunctionID, void *pParams ) { switch ( nFunctionID ) { case FID_INITIALIZE: return OnInitialize ((StartupInfo*)pParams); case FID_FINALIZE: return OnFinalize (); case FID_QUERYARCHIVE: return OnQueryArchive ((QueryArchiveStruct*)pParams); case FID_OPENARCHIVE: return OnOpenArchive ((OpenArchiveStruct*)pParams); case FID_CLOSEARCHIVE: return OnCloseArchive ((CloseArchiveStruct*)pParams); case FID_FINALIZEARCHIVE: return OnFinalizeArchive ((RarArchive*)pParams); case FID_GETARCHIVEMODULEINFO: return OnGetArchiveModuleInfo ((ArchiveModuleInfo*)pParams); case FID_GETARCHIVEITEM: return OnGetArchiveItem ((GetArchiveItemStruct*)pParams); case FID_FREEARCHIVEITEM: return OnFreeArchiveItem((FreeArchiveItemStruct*)pParams); case FID_EXTRACT: return OnExtract ((ExtractStruct*)pParams); case FID_TEST: return OnTest ((TestStruct*)pParams); case FID_GETDEFAULTCOMMAND: return OnGetDefaultCommand ((GetDefaultCommandStruct*)pParams); } return NAERROR_NOTIMPLEMENTED; }
int __stdcall ModuleEntry ( int nFunctionID, void *pParams ) { switch ( nFunctionID ) { case FID_INITIALIZE: return OnInitialize ((StartupInfo*)pParams); case FID_FINALIZE: return OnFinalize (); case FID_QUERYARCHIVE: return OnQueryArchive ((QueryArchiveStruct*)pParams); case FID_OPENARCHIVE: return OnOpenArchive ((OpenCreateArchiveStruct*)pParams); case FID_CLOSEARCHIVE: return OnCloseArchive ((CloseArchiveStruct*)pParams); case FID_GETARCHIVEMODULEINFO: return OnGetArchiveModuleInfo ((ArchiveModuleInfo*)pParams); case FID_GETARCHIVEITEM: return OnGetArchiveItem ((GetArchiveItemStruct*)pParams); case FID_FREEARCHIVEITEM: return OnFreeArchiveItem((FreeArchiveItemStruct*)pParams); case FID_EXTRACT: return OnExtract ((ExtractStruct*)pParams); case FID_STARTOPERATION: return OnStartOperation((OperationStruct*)pParams); case FID_ENDOPERATION: return OnEndOperation((OperationStruct*)pParams); case FID_GETARCHIVEINFO: return OnGetArchiveInfo((ArchiveInfoStruct*)pParams); } return NAERROR_NOTIMPLEMENTED; }