X-Git-Url: http://git.sourceforge.jp/view?p=ffftp%2Fffftp.git;a=blobdiff_plain;f=mbswrapper.h;h=9d134e186c24dfd39c96867960f19b8f80165c32;hp=f1040b97f4221b383120e306b5232b28d1632bb8;hb=2bffe82de6811b380d280099f638dd7b4cbb3404;hpb=642b947efc5358f232f9eeda98f7c8eb111acf1f diff --git a/mbswrapper.h b/mbswrapper.h index f1040b9..9d134e1 100644 --- a/mbswrapper.h +++ b/mbswrapper.h @@ -44,6 +44,12 @@ LONG GetWindowLongM(HWND hWnd, int nIndex); #undef SetWindowLong #define SetWindowLong SetWindowLongM LONG SetWindowLongM(HWND hWnd, int nIndex, LONG dwNewLong); +#undef GetWindowLongPtr +#define GetWindowLongPtr GetWindowLongPtrM +LONG_PTR GetWindowLongPtrM(HWND hWnd, int nIndex); +#undef SetWindowLongPtr +#define SetWindowLongPtr SetWindowLongPtrM +LONG_PTR SetWindowLongPtrM(HWND hWnd, int nIndex, LONG_PTR dwNewLong); #undef DefWindowProc #define DefWindowProc DefWindowProcM LRESULT DefWindowProcM(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); @@ -125,6 +131,9 @@ HINSTANCE FindExecutableM(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult); #undef ShellExecute #define ShellExecute ShellExecuteM HINSTANCE ShellExecuteM(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd); +#undef ShellExecuteEx +#define ShellExecuteEx ShellExecuteExM +BOOL ShellExecuteExM(LPSHELLEXECUTEINFOA lpExecInfo); #undef SHBrowseForFolder #define SHBrowseForFolder SHBrowseForFolderM PIDLIST_ABSOLUTE SHBrowseForFolderM(LPBROWSEINFOA lpbi); @@ -134,6 +143,9 @@ BOOL SHGetPathFromIDListM(PCIDLIST_ABSOLUTE pidl, LPSTR pszPath); #undef SHFileOperation #define SHFileOperation SHFileOperationM int SHFileOperationM(LPSHFILEOPSTRUCTA lpFileOp); +#undef SHGetFileInfo +#define SHGetFileInfo SHGetFileInfoM +DWORD_PTR SHGetFileInfoM(LPCSTR pszPath, DWORD dwFileAttributes, SHFILEINFOA *psfi, UINT cbFileInfo, UINT uFlags); #undef AppendMenu #define AppendMenu AppendMenuM BOOL AppendMenuM(HMENU hMenu, UINT uFlags, UINT_PTR uIDNewItem, LPCSTR lpNewItem); @@ -158,6 +170,12 @@ BOOL sndPlaySoundM(LPCSTR pszSound, UINT fuSound); #undef SetClipboardData #define SetClipboardData SetClipboardDataM HANDLE SetClipboardDataM(UINT uFormat, HANDLE hMem); +#undef CopyFile +#define CopyFile CopyFileM +BOOL CopyFileM(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists); +#undef MoveFile +#define MoveFile MoveFileM +BOOL MoveFileM(LPCSTR lpExistingFileName, LPCSTR lpNewFileName); #undef mkdir #define mkdir _mkdirM int mkdirM(const char * _Path); @@ -170,6 +188,15 @@ int rmdirM(const char * _Path); #undef _rmdir #define _rmdir _rmdirM int _rmdirM(const char * _Path); +#undef remove +#define remove removeM +int removeM(const char * _Filename); +#undef _remove +#define _remove _removeM +int _removeM(const char * _Filename); +#undef _unlink +#define _unlink _unlinkM +int _unlinkM(const char * _Filename); #undef _mbslen #define _mbslen _mbslenM size_t _mbslenM(const unsigned char * _Str); @@ -235,6 +262,11 @@ wchar_t* DuplicateMtoWMultiStringBuffer(LPCSTR lpString, int size); char* DuplicateWtoM(LPCWSTR lpString, int c); wchar_t* DuplicateAtoW(LPCSTR lpString, int c); char* DuplicateWtoA(LPCWSTR lpString, int c); +DWORD GetNextCharM(LPCSTR lpString, LPCSTR* ppNext); +BOOL FixStringM(LPSTR pDst, LPCSTR pSrc); +BOOL FixMultiStringM(LPSTR pDst, LPCSTR pSrc); +BOOL CheckStringM(LPCSTR lpString); +BOOL CheckMultiStringM(LPCSTR lpString); void FreeDuplicatedString(void* p); int WINAPI WinMainM(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);