summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/Utils.h
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-04-03 02:11:56 +0000
committerRené Schümann <white06tiger@gmail.com>2014-04-03 02:11:56 +0000
commitb87686ce677be209f6923fc8b2f11edcff7f98a0 (patch)
tree38654f368df08bc0ad5efe079bf71343d6c4ccb0 /plugins/SendScreenshotPlus/src/Utils.h
parent6d57c5a6472a17864d85b5923a4c4dfcf3606df3 (diff)
SendSS
* changed LPSTR to char* and LPTSTR to TCHAR* * GetFileName split into A and W functions (Utils.cpp) git-svn-id: http://svn.miranda-ng.org/main/trunk@8834 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/Utils.h')
-rw-r--r--plugins/SendScreenshotPlus/src/Utils.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/plugins/SendScreenshotPlus/src/Utils.h b/plugins/SendScreenshotPlus/src/Utils.h
index 7270178153..59e456bde3 100644
--- a/plugins/SendScreenshotPlus/src/Utils.h
+++ b/plugins/SendScreenshotPlus/src/Utils.h
@@ -50,18 +50,27 @@ size_t MonitorInfoEnum(MONITORINFOEX* & myMonitors, RECT & virtualScreen);
BOOL CALLBACK MonitorInfoEnumProc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData);
FIBITMAP* CaptureWindow(HWND hCapture, BOOL ClientArea);
-FIBITMAP* CaptureMonitor(LPTSTR szDevice);
+FIBITMAP* CaptureMonitor(TCHAR* szDevice);
FIBITMAP* CaptureScreen(HDC hDC, SIZE size, HWND hCapture=0);
//FIBITMAP* CaptureDesktop(); /*emulate print screen (not used)*/
-LPTSTR SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, LPTSTR pszFilename, LPTSTR pszExt, int flag=0);
-
-INT_PTR GetFileName(LPTSTR pszPath, UINT typ);
-INT_PTR GetFileExt (LPTSTR pszPath, UINT typ);
+TCHAR* SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, TCHAR* pszFilename, TCHAR* pszExt, int flag=0);
+
+TCHAR* GetFileNameW(TCHAR* pszPath);
+TCHAR* GetFileExtW (TCHAR* pszPath);
+char* GetFileNameA(TCHAR* pszPath);
+char* GetFileExtA (TCHAR* pszPath);
+#ifdef _UNICODE
+# define GetFileName GetFileNameW
+# define GetFileExt GetFileExtW
+#else
+# define GetFileName GetFileNameA
+# define GetFileExt GetFileExtA
+#endif // _UNICODE
BOOL GetEncoderClsid(wchar_t *wchMimeType, CLSID& clsidEncoder);
-//INT_PTR SavePNG(HBITMAP hBmp, LPTSTR szFilename);
-INT_PTR SaveGIF(HBITMAP hBmp, LPTSTR szFilename);
-INT_PTR SaveTIF(HBITMAP hBmp, LPTSTR szFilename);
+//void SavePNG(HBITMAP hBmp, TCHAR* szFilename);
+void SaveGIF(HBITMAP hBmp, TCHAR* szFilename);
+void SaveTIF(HBITMAP hBmp, TCHAR* szFilename);
//---------------------------------------------------------------------------
/* Old stuff from Borland C++