OSDN Git Service

Treat SSL 3.0 as a weak encryption method and change not to use it by default.
[ffftp/ffftp.git] / mbswrapper.h
index 9d134e1..65b0832 100644 (file)
@@ -29,6 +29,9 @@ HANDLE FindFirstFileM(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData);
 #undef FindNextFile\r
 #define FindNextFile FindNextFileM\r
 BOOL FindNextFileM(HANDLE hFindFile, LPWIN32_FIND_DATAA lpFindFileData);\r
+#undef FindFirstChangeNotification\r
+#define FindFirstChangeNotification FindFirstChangeNotificationM\r
+HANDLE FindFirstChangeNotificationM(LPCSTR lpPathName, BOOL bWatchSubtree, DWORD dwNotifyFilter);\r
 #undef GetLogicalDriveStrings\r
 #define GetLogicalDriveStrings GetLogicalDriveStringsM\r
 DWORD GetLogicalDriveStringsM(DWORD nBufferLength, LPSTR lpBuffer);\r
@@ -176,6 +179,15 @@ BOOL CopyFileM(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExis
 #undef MoveFile\r
 #define MoveFile MoveFileM\r
 BOOL MoveFileM(LPCSTR lpExistingFileName, LPCSTR lpNewFileName);\r
+#undef DeleteFile\r
+#define DeleteFile DeleteFileM\r
+BOOL DeleteFileM(LPCSTR lpFileName);\r
+#undef CreateDirectory\r
+#define CreateDirectory CreateDirectoryM\r
+BOOL CreateDirectoryM(LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes);\r
+#undef RemoveDirectory\r
+#define RemoveDirectory RemoveDirectoryM\r
+BOOL RemoveDirectoryM(LPCSTR lpPathName);\r
 #undef mkdir\r
 #define mkdir _mkdirM\r
 int mkdirM(const char * _Path);\r
@@ -238,6 +250,16 @@ FILE * fopenM(const char * _Filename, const char * _Mode);
 \r
 #endif\r
 \r
+#ifdef FORCE_SJIS_ON_ACTIVE_CODE_PAGE\r
+#undef CP_ACP\r
+#define CP_ACP 932\r
+#endif\r
+\r
+#ifdef EMULATE_UTF8_WCHAR_CONVERSION\r
+#define MultiByteToWideChar MultiByteToWideCharAlternative\r
+#define WideCharToMultiByte WideCharToMultiByteAlternative\r
+#endif\r
+\r
 int MtoW(LPWSTR pDst, int size, LPCSTR pSrc, int count);\r
 int WtoM(LPSTR pDst, int size, LPCWSTR pSrc, int count);\r
 int AtoW(LPWSTR pDst, int size, LPCSTR pSrc, int count);\r
@@ -262,12 +284,19 @@ 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
+DWORD GetNextCharM(LPCSTR lpString, LPCSTR pLimit, LPCSTR* ppNext);\r
+int PutNextCharM(LPSTR lpString, LPSTR pLimit, LPSTR* ppNext, DWORD Code);\r
+DWORD GetNextCharW(LPCWSTR lpString, LPCWSTR pLimit, LPCWSTR* ppNext);\r
+int PutNextCharW(LPWSTR lpString, LPWSTR pLimit, LPWSTR* ppNext, DWORD Code);\r
+int GetCodeCountM(LPCSTR lpString, int CharCount);\r
+int GetCodeCountW(LPCWSTR lpString, int CharCount);\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
+int MultiByteToWideCharAlternative(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);\r
+int WideCharToMultiByteAlternative(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cbMultiByte, LPCSTR lpDefaultChar, LPBOOL lpUsedDefaultChar);\r
 \r
 int WINAPI WinMainM(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);\r
 \r