OSDN Git Service

Change the character code of windows into UTF-16 completely.
[ffftp/ffftp.git] / mbswrapper.h
index af8ba4a..f081832 100644 (file)
@@ -44,6 +44,12 @@ LONG GetWindowLongM(HWND hWnd, int nIndex);
 #undef SetWindowLong\r
 #define SetWindowLong SetWindowLongM\r
 LONG SetWindowLongM(HWND hWnd, int nIndex, LONG dwNewLong);\r
+#undef GetWindowLongPtr\r
+#define GetWindowLongPtr GetWindowLongPtrM\r
+LONG_PTR GetWindowLongPtrM(HWND hWnd, int nIndex);\r
+#undef SetWindowLongPtr\r
+#define SetWindowLongPtr SetWindowLongPtrM\r
+LONG_PTR SetWindowLongPtrM(HWND hWnd, int nIndex, LONG_PTR dwNewLong);\r
 #undef DefWindowProc\r
 #define DefWindowProc DefWindowProcM\r
 LRESULT DefWindowProcM(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);\r
@@ -125,6 +131,9 @@ HINSTANCE FindExecutableM(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult);
 #undef ShellExecute\r
 #define ShellExecute ShellExecuteM\r
 HINSTANCE ShellExecuteM(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd);\r
+#undef ShellExecuteEx\r
+#define ShellExecuteEx ShellExecuteExM\r
+BOOL ShellExecuteExM(LPSHELLEXECUTEINFOA lpExecInfo);\r
 #undef SHBrowseForFolder\r
 #define SHBrowseForFolder SHBrowseForFolderM\r
 PIDLIST_ABSOLUTE SHBrowseForFolderM(LPBROWSEINFOA lpbi);\r
@@ -155,6 +164,12 @@ HWND CreateDialogParamM(HINSTANCE hInstance, LPCSTR lpTemplateName, HWND hWndPar
 #undef sndPlaySound\r
 #define sndPlaySound sndPlaySoundM\r
 BOOL sndPlaySoundM(LPCSTR pszSound, UINT fuSound);\r
+#undef SetClipboardData\r
+#define SetClipboardData SetClipboardDataM\r
+HANDLE SetClipboardDataM(UINT uFormat, HANDLE hMem);\r
+#undef CopyFile\r
+#define CopyFile CopyFileM\r
+BOOL CopyFileM(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists);\r
 #undef mkdir\r
 #define mkdir _mkdirM\r
 int mkdirM(const char * _Path);\r
@@ -232,6 +247,11 @@ wchar_t* DuplicateMtoWMultiStringBuffer(LPCSTR lpString, int size);
 char* DuplicateWtoM(LPCWSTR lpString, int c);\r
 wchar_t* DuplicateAtoW(LPCSTR lpString, int c);\r
 char* DuplicateWtoA(LPCWSTR lpString, int c);\r
+DWORD GetNextCharM(LPCSTR lpString, LPCSTR* ppNext);\r
+BOOL FixStringM(LPSTR pDst, LPCSTR pSrc);\r
+BOOL FixMultiStringM(LPSTR pDst, LPCSTR pSrc);\r
+BOOL CheckStringM(LPCSTR lpString);\r
+BOOL CheckMultiStringM(LPCSTR lpString);\r
 void FreeDuplicatedString(void* p);\r
 \r
 int WINAPI WinMainM(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);\r