X-Git-Url: http://git.sourceforge.jp/view?p=ffftp%2Fffftp.git;a=blobdiff_plain;f=mbswrapper.h;h=9d134e186c24dfd39c96867960f19b8f80165c32;hp=08a0f0032c503b4f6183ac1fa04dc39df255d50a;hb=554ddaeeff25cb5ca2494470a41834cfeadec8df;hpb=594d1b1617d71ba34e3ea57478a47f34a547fb2e diff --git a/mbswrapper.h b/mbswrapper.h index 08a0f00..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); @@ -137,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); @@ -164,6 +173,9 @@ 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); @@ -176,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); @@ -241,6 +262,7 @@ 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);