X-Git-Url: http://git.sourceforge.jp/view?p=ffftp%2Fffftp.git;a=blobdiff_plain;f=mbswrapper.h;h=f081832785a8b9bc844191f2696a3e73ad25e531;hp=af8ba4a3fbda1a9372e55ff6f981d3fb2487c365;hb=ffd9ce66d16fb452725a6bb1b5d1ef848fcd2628;hpb=93f66de680facd0f7ef9c9b0c1383e1d5c0b5dac diff --git a/mbswrapper.h b/mbswrapper.h index af8ba4a..f081832 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); @@ -155,6 +164,12 @@ HWND CreateDialogParamM(HINSTANCE hInstance, LPCSTR lpTemplateName, HWND hWndPar #undef sndPlaySound #define sndPlaySound sndPlaySoundM 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 mkdir #define mkdir _mkdirM int mkdirM(const char * _Path); @@ -232,6 +247,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);