{\r
return TPI_ERROR_D_PARAMETER;\r
}\r
- switch (LOWORD(_uInfoId))\r
+ switch (_uInfoId)\r
{\r
case TPI_INFO_VERSION_MAJOR:\r
case TPI_INFO_VERSION_MINOR:\r
#include <wx/stdpaths.h>\r
#include <wx/xml/xml.h>\r
#include <wx/tokenzr.h>\r
+#ifdef __WINDOWS__\r
#include <windows.h>\r
+#endif\r
#include "cuiWrapper.h"\r
\r
//******************************************************************************\r
// Entry\r
//******************************************************************************\r
\r
+#ifdef __WINDOWS__\r
BOOL __stdcall DllMain(HMODULE, DWORD, void *)\r
{\r
return TRUE;\r
}\r
+#endif\r
\r
//******************************************************************************\r
// Inside Functions\r
//******************************************************************************\r
\r
-DWORD myExecute(wxString szCommandLine, wxString * szOutput, wxString szCwd, bool bCheckExist = false)\r
+int myExecute(wxString szCommandLine, wxString * szOutput, wxString szCwd, bool bCheckExist = false)\r
{\r
#ifdef __LINUX__\r
wxString sz = ::wxGetCwd();\r
{\r
return TPI_ERROR_D_PARAMETER;\r
}\r
- switch (LOWORD(_uInfoId))\r
+ switch (_uInfoId)\r
{\r
case TPI_INFO_VERSION_MAJOR:\r
case TPI_INFO_VERSION_MINOR:\r
\r
// \83R\83}\83\93\83h\83\89\83C\83\93\8eÀ\8ds\81B\r
wxString szOutput;\r
- DWORD nErrorCode = myExecute(g_LibInfo.szExeFile + wxT(" ") + szCommandLineSend, & szOutput, _swInfo->fnDestinationDirectory.GetFullPath());\r
+ int nErrorCode = myExecute(g_LibInfo.szExeFile + wxT(" ") + szCommandLineSend, & szOutput, _swInfo->fnDestinationDirectory.GetFullPath());\r
\r
// \83\8c\83X\83|\83\93\83X\83t\83@\83C\83\8b\8dí\8f\9c\81B\r
::wxRemoveFile(szResponceFileName);\r
{\r
return TPI_ERROR_D_PARAMETER;\r
}\r
- switch (LOWORD(_uInfoId))\r
+ switch (_uInfoId)\r
{\r
case TPI_INFO_VERSION_MAJOR:\r
case TPI_INFO_VERSION_MINOR:\r
#include "../../common/header/plugin-extra.h"\r
#include "../../common/library/library.h"\r
#include <wx/dynlib.h>\r
-#include <windows.h>\r
#include "rarArc.h"\r
\r
//******************************************************************************\r
// Callback Wrapper\r
//******************************************************************************\r
\r
-int __stdcall CallbackProc(unsigned int msg, long UserData, long P1, long P2)\r
+int __stdcall CallbackProc(unsigned int msg, long, long P1, long P2)\r
{\r
// \8d\\91¢\91Ì\82ð\8f\89\8aú\89»\81B\r
static TPI_PROCESSINFO piInfo;\r
{\r
return TPI_ERROR_D_PARAMETER;\r
}\r
- switch (LOWORD(_uInfoId))\r
+ switch (_uInfoId)\r
{\r
case TPI_INFO_VERSION_MAJOR:\r
case TPI_INFO_VERSION_MINOR:\r
{\r
return TPI_ERROR_U_USE_LIBRARY;\r
}\r
- ((void (__stdcall *)(void *, FARPROC, LPARAM)) p)(* _hArchive, (FARPROC) CallbackProc, (LPARAM) & g_hdInfo);\r
+ ((void (__stdcall *)(void *, void *, long)) p)(* _hArchive, (void *) CallbackProc, (long) & g_hdInfo);\r
\r
return TPI_ERROR_SUCCESS;\r
}\r
{\r
return TPI_ERROR_D_PARAMETER;\r
}\r
- switch (LOWORD(_uInfoId))\r
+ switch (_uInfoId)\r
{\r
case TPI_INFO_VERSION_MAJOR:\r
case TPI_INFO_VERSION_MINOR:\r