2 * Copyright 2003, 2004 Martin Fuchs
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 // Martin Fuchs, 23.07.2003
29 // standard windows headers
30 #define WIN32_LEAN_AND_MEAN
31 #define WIN32_EXTRA_LEAN
40 #include <windowsx.h> // for SelectBrush(), ListBox_SetSel(), SubclassWindow(), ...
46 #include <oleauto.h> // for VARIANT
48 #include <malloc.h> // for alloca()
50 #include <stdlib.h> // for _MAX_DIR, ...
51 #include <stdio.h> // for sprintf()
56 #define _MAX_FNAME 256
57 #define _MAX_DIR _MAX_FNAME
58 #define _MAX_EXT _MAX_FNAME
62 #define W_VER_NT 0 // constant for HIWORD(GetVersion())>>14
70 #define for if (0) {} else for
72 #define COUNTOF(x) (sizeof(x)/sizeof(x[0]))
75 #define BUFFER_LEN 2048
78 extern void _log_(LPCTSTR txt
);
80 #define LOG(txt) _log_(txt)
84 #define LONGLONGARG TEXT("I64")
86 #define LONGLONGARG TEXT("L")
92 #define _tcsrchr wcsrchr
94 #define _tcsrchr strrchr
100 #define _stprintf wcsprintf
102 #define _stprintf sprintf
106 #define U2A(s, d, l) WideCharToMultiByte(CP_ACP, 0, s, -1, d, l, NULL, NULL)
107 #define U2nA(s, d, l) WideCharToMultiByte(CP_ACP, 0, s, l, d, l, NULL, NULL)
108 #define A2U(s, d, l) MultiByteToWideChar(CP_ACP, 0, s, -1, d, l)
109 #define A2nU(s, d, l) MultiByteToWideChar(CP_ACP, 0, s, l, d, l)
114 extern void _wsplitpath(const WCHAR
* path
, WCHAR
* drv
, WCHAR
* dir
, WCHAR
* name
, WCHAR
* ext
);
116 extern void _splitpath(const CHAR
* path
, CHAR
* drv
, CHAR
* dir
, CHAR
* name
, CHAR
* ext
);
118 #define _tcsnicmp strncasecmp
119 #define _tcsicoll strcasecmp
122 #ifndef FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
123 #define FILE_ATTRIBUTE_ENCRYPTED 0x00000040
124 #define FILE_ATTRIBUTE_SPARSE_FILE 0x00000200
125 #define FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
126 #define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000
130 #define SetDlgCtrlID(hwnd, id) SetWindowLong(hwnd, GWL_ID, id)
131 #define SetWindowStyle(hwnd, val) (DWORD)SetWindowLong(hwnd, GWL_STYLE, val)
132 #define SetWindowExStyle(h, val) (DWORD)SetWindowLong(hwnd, GWL_EXSTYLE, val)
133 #define Window_SetIcon(hwnd, type, hicon) (HICON)SendMessage(hwnd, WM_SETICON, type, (LPARAM)(hicon))
136 // center window in respect to its parent window
137 extern void CenterWindow(HWND hwnd
);
139 // move window into visibility
140 extern void MoveVisible(HWND hwnd
);
142 // display error message
143 extern void display_error(HWND hwnd
, DWORD error
);
145 // convert time_t to WIN32 FILETIME
146 extern BOOL
time_to_filetime(const time_t* t
, FILETIME
* ftime
);
148 // search for windows of a specific classname
149 extern int find_window_class(LPCTSTR classname
);
151 // create a directory with all missing parent directories
152 BOOL
RecursiveCreateDirectory(LPCTSTR path_in
);
154 // read DWORD value from registry
155 DWORD
RegGetDWORDValue(HKEY root
, LPCTSTR path
, LPCTSTR valueName
, DWORD def
);
157 // write DWORD value to registry
158 BOOL
RegSetDWORDValue(HKEY root
, LPCTSTR path
, LPCTSTR valueName
, DWORD value
);
160 // test for existing directory
161 BOOL
exists_path(LPCTSTR path
);
172 #pragma warning(disable: 4786) // disable warnings about too long debug information symbols
175 // STL headers for strings and streams
188 #if _MSC_VER>=1300 // VS.Net
189 #define _NO_COMUTIL //@@
192 #if defined(_MSC_VER) && !defined(_NO_COMUTIL)
194 // COM utility headers
196 using namespace _com_util
;
198 #endif // _MSC_VER && !_NO_COMUTIL
201 // launch a program or document file
202 extern BOOL
launch_file(HWND hwnd
, LPCTSTR cmd
, UINT nCmdShow
=SW_SHOWNORMAL
, LPCTSTR parameters
=NULL
);
204 extern BOOL
launch_fileA(HWND hwnd
, LPSTR cmd
, UINT nCmdShow
=SW_SHOWNORMAL
, LPCSTR parameters
=NULL
);
206 #define launch_fileA launch_file
209 // call an DLL export like rundll32
210 extern BOOL
RunDLL(HWND hwnd
, LPCTSTR dllname
, LPCSTR procname
, LPCTSTR cmdline
, UINT nCmdShow
);
212 // launch control panel applet
213 extern BOOL
launch_cpanel(HWND hwnd
, LPCTSTR applet
);
216 /// initialization of windows common controls
217 struct CommonControlInit
219 CommonControlInit(DWORD flags
=ICC_LISTVIEW_CLASSES
|ICC_TREEVIEW_CLASSES
|ICC_BAR_CLASSES
|ICC_PROGRESS_CLASS
|ICC_COOL_CLASSES
)
221 INITCOMMONCONTROLSEX icc
= {sizeof(INITCOMMONCONTROLSEX
), flags
};
223 InitCommonControlsEx(&icc
);
230 struct WaitCursor
///@todo integrate with WM_SETCURSOR to enable multithreaded background tasks as program launching
234 _old_cursor
= SetCursor(LoadCursor(0, IDC_WAIT
));
239 SetCursor(_old_cursor
);
247 /// base of all structures storing a window handle
250 WindowHandle(HWND hwnd
=0)
253 operator HWND() const {return _hwnd
;}
254 HWND
* operator&() {return &_hwnd
;}
261 /// locally hide a window
262 struct HiddenWindow
: public WindowHandle
264 HiddenWindow(HWND hwnd
)
265 : WindowHandle(IsWindowVisible(hwnd
)? hwnd
: 0)
268 SetWindowPos(_hwnd
, 0, 0, 0, 0, 0, SWP_HIDEWINDOW
|SWP_NOREDRAW
|SWP_NOMOVE
|SWP_NOSIZE
|SWP_NOZORDER
);
274 SetWindowPos(_hwnd
, 0, 0, 0, 0, 0, SWP_SHOWWINDOW
|SWP_NOMOVE
|SWP_NOSIZE
|SWP_NOZORDER
);
279 /// critical section wrapper
281 struct CritSect
: public CRITICAL_SECTION
285 InitializeCriticalSection(this);
290 DeleteCriticalSection(this);
295 /// Lock protects a code section utilizing a critical section
299 Lock(CritSect
& crit_sect
)
300 : _crit_sect(crit_sect
)
302 EnterCriticalSection(&crit_sect
);
307 LeaveCriticalSection(&_crit_sect
);
311 CritSect
& _crit_sect
;
315 /// Thread base class
323 _hThread
= INVALID_HANDLE_VALUE
;
324 _evtFinish
= CreateEvent(NULL
, TRUE
, FALSE
, NULL
);
331 CloseHandle(_evtFinish
);
332 CloseHandle(_hThread
);
342 _hThread
= CreateThread(NULL
, 0, ThreadProc
, this, 0, NULL
);
348 SetEvent(_evtFinish
);
352 Lock
lock(_crit_sect
);
356 // wait for finishing
357 WaitForSingleObject(_hThread
, INFINITE
);
361 virtual int Run() = 0;
363 bool is_alive() const {return _alive
;}
368 static DWORD WINAPI
ThreadProc(void* para
);
379 /// ClientRect retreives the client area rectangle of a window.
380 struct ClientRect
: public RECT
382 ClientRect(HWND hwnd
)
384 GetClientRect(hwnd
, this);
387 operator LPRECT() {return this;}
389 POINT
& pos() {return *(LPPOINT
)this;}
392 /// ClientRect retreives the window rectangle of a window.
393 struct WindowRect
: public RECT
395 WindowRect(HWND hwnd
)
397 GetWindowRect(hwnd
, this);
400 operator LPRECT() {return this;}
402 POINT
& pos() {return *(LPPOINT
)this;}
405 /// PointL encapsulates the POINT structure into a C++ object.
406 struct Point
: public POINT
408 Point(LONG x_
, LONG y_
)
414 // constructor for being used in processing WM_MOUSEMOVE, WM_LBUTTONDOWN, ... messages
417 x
= GET_X_LPARAM(lparam
);
418 y
= GET_Y_LPARAM(lparam
);
421 operator LPPOINT() {return this;}
425 /// transform coordinates in a RECT from client to screen coordiantes
426 inline void ClientToScreen(HWND hwnd
, RECT
* prect
)
427 {::ClientToScreen(hwnd
,(LPPOINT
)&prect
->left
); ::ClientToScreen(hwnd
,(LPPOINT
)&prect
->right
);}
429 /// transform coordinates in a RECT from screen to client coordiantes
430 inline void ScreenToClient(HWND hwnd
, RECT
* prect
)
431 {::ScreenToClient(hwnd
,(LPPOINT
)&prect
->left
); ::ScreenToClient(hwnd
,(LPPOINT
)&prect
->right
);}
434 /// structure containing information about full screen display of the frame window
435 struct FullScreenParameters
437 FullScreenParameters()
450 /// PaintCanvas is a encapsulation of device contexts managed by BeginPaint()/EndPaint().
451 struct PaintCanvas
: public PAINTSTRUCT
453 PaintCanvas(HWND hwnd
)
456 BeginPaint(hwnd
, this);
461 EndPaint(_hwnd
, this);
464 operator HDC() const {return hdc
;}
470 /// Canvas is a encapsulation of device contexts.
473 Canvas(HDC hdc
) : _hdc(hdc
) {}
475 operator HDC() {return _hdc
;}
481 /// WindowCanvas is a encapsulation of client area device contexts.
482 struct WindowCanvas
: public Canvas
484 WindowCanvas(HWND hwnd
)
485 : Canvas(GetDC(hwnd
)), _hwnd(hwnd
) {}
487 ~WindowCanvas() {ReleaseDC(_hwnd
, _hdc
);}
494 // double buffering classes
496 /// Memory Canvas creates and destroys memory devoce contexts.
497 struct MemCanvas
: public Canvas
500 : Canvas(CreateCompatibleDC(hdc
)) {assert(_hdc
);}
502 ~MemCanvas() {DeleteDC(_hdc
);}
505 /// SelectedBitmap is used to localy select bitmaps into device contexts.
506 struct SelectedBitmap
508 SelectedBitmap(HDC hdc
, HBITMAP hbmp
)
509 : _hdc(hdc
), _old_hbmp(SelectBitmap(hdc
, hbmp
)) {}
511 ~SelectedBitmap() {DeleteObject(SelectBitmap(_hdc
, _old_hbmp
));}
518 /// BufferCanvas manages offscreen bitmaps selected into memory device contexts.
519 struct BufferCanvas
: public MemCanvas
521 BufferCanvas(HDC hdc
, int x
, int y
, int w
, int h
)
522 : MemCanvas(hdc
), _hdctarg(hdc
),
523 _x(x
), _y(y
), _w(w
), _h(h
),
524 _bmp(_hdc
, CreateCompatibleBitmap(hdc
, w
, h
)) {}
526 BufferCanvas(HDC hdc
, const RECT
& rect
)
527 : MemCanvas(hdc
), _hdctarg(hdc
),
528 _x(rect
.left
), _y(rect
.top
), _w(rect
.right
-rect
.left
), _h(rect
.bottom
-rect
.top
),
529 _bmp(_hdc
, CreateCompatibleBitmap(hdc
, _w
, _h
)) {}
537 /// BufferedCanvas enables double buffering for a device context.
538 struct BufferedCanvas
: public BufferCanvas
540 BufferedCanvas(HDC hdc
, int x
, int y
, int w
, int h
, DWORD mode
=SRCCOPY
)
541 : BufferCanvas(hdc
, x
, y
, w
, h
), _mode(mode
) {}
543 BufferedCanvas(HDC hdc
, const RECT
& rect
, DWORD mode
=SRCCOPY
)
544 : BufferCanvas(hdc
, rect
), _mode(mode
) {}
546 ~BufferedCanvas() {BitBlt(_hdctarg
, _x
, _y
, _w
, _h
, _hdc
, 0, 0, _mode
);}
551 /// BufferedPaintCanvas extends PaintCanvas for double buffering.
552 struct BufferedPaintCanvas
: public PaintCanvas
, public BufferedCanvas
554 BufferedPaintCanvas(HWND hwnd
)
556 BufferedCanvas(PAINTSTRUCT::hdc
, 0, 0, rcPaint
.right
, rcPaint
.bottom
)
560 operator HDC() {return BufferedCanvas::_hdc
;}
564 /// TextColor locally selects a text color for drawing.
567 TextColor(HDC hdc
, COLORREF color
)
568 : _hdc(hdc
), _old_color(SetTextColor(hdc
, color
)) {}
570 ~TextColor() {SetTextColor(_hdc
, _old_color
);}
577 /// BkMode locally sets the background mode for drawing.
580 BkMode(HDC hdc
, int bkmode
)
581 : _hdc(hdc
), _old_bkmode(SetBkMode(hdc
, bkmode
)) {}
583 ~BkMode() {SetBkMode(_hdc
, _old_bkmode
);}
587 COLORREF _old_bkmode
;
590 /// FontSelection locally selects a font for drawing.
593 FontSelection(HDC hdc
, HFONT hFont
)
594 : _hdc(hdc
), _old_hFont(SelectFont(hdc
, hFont
)) {}
596 ~FontSelection() {SelectFont(_hdc
, _old_hFont
);}
603 /// BitmapSelection locally selects a bitmap into a device context.
604 struct BitmapSelection
606 BitmapSelection(HDC hdc
, HBITMAP hBmp
)
607 : _hdc(hdc
), _old_hBmp(SelectBitmap(hdc
, hBmp
)) {}
609 ~BitmapSelection() {SelectBitmap(_hdc
, _old_hBmp
);}
616 /// BrushSelection locally selects a brush into a device context.
617 struct BrushSelection
619 BrushSelection(HDC hdc
, HBRUSH hBrush
)
620 : _hdc(hdc
), _old_hBrush(SelectBrush(hdc
, hBrush
)) {}
622 ~BrushSelection() {SelectBrush(_hdc
, _old_hBrush
);}
634 : _hmenu(CreatePopupMenu())
640 operator HMENU() {return _hmenu
;}
642 void Append(UINT id
, LPCTSTR str
, UINT flags
=MF_STRING
)
644 AppendMenu(_hmenu
, flags
, id
, str
);
647 int TrackPopupMenu(HWND hwnd
, const POINT
& pt
, UINT flags
=TPM_LEFTBUTTON
|TPM_RIGHTBUTTON
, LPTPMPARAMS tpm
=NULL
) {
648 return TrackPopupMenuEx(_hmenu
, flags
, pt
.x
, pt
.y
, hwnd
, tpm
);
651 int PopupContextMenu(HWND hwnd
, POINTS pos
, UINT flags
=TPM_LEFTBUTTON
|TPM_RIGHTBUTTON
) {
652 POINT pt
; POINTSTOPOINT(pt
, pos
);
653 return TrackPopupMenuEx(_hmenu
, flags
, pt
.x
, pt
.y
, hwnd
, NULL
);
656 int TrackPopupMenu(HWND hwnd
, POINTS pos
, UINT flags
=TPM_LEFTBUTTON
|TPM_RIGHTBUTTON
) {
657 POINT pt
; POINTSTOPOINT(pt
, pos
);
658 ClientToScreen(hwnd
, &pt
);
659 return TrackPopupMenuEx(_hmenu
, flags
, pt
.x
, pt
.y
, hwnd
, NULL
);
662 int TrackPopupMenuAtCursor(HWND hwnd
, UINT flags
=TPM_LEFTBUTTON
) {
663 POINT pt
; GetCursorPos(&pt
);
664 return TrackPopupMenuEx(_hmenu
, flags
, pt
.x
, pt
.y
, hwnd
, NULL
);
667 int TrackPopupMenuAtPos(HWND hwnd
, DWORD pos
, UINT flags
=TPM_LEFTBUTTON
) {
668 return TrackPopupMenuEx(_hmenu
, flags
, GET_X_LPARAM(pos
), GET_Y_LPARAM(pos
), hwnd
, NULL
);
676 struct Variant
: public VARIANT
678 Variant() {VariantInit(this);}
679 Variant(const VARIANT
& var
);
680 Variant(const VARIANT
* var
);
683 operator long() const;
684 operator bool() const;
685 operator VARIANT_BOOL() const;
686 operator IDispatch
*() const;
699 _p
= SysAllocString(s
);
707 _p
= SysAllocStringLen(b
, MultiByteToWideChar(CP_ACP
, 0, s
, -1, b
, BUFFER_LEN
)-1);
714 _p
= SysAllocString(s
);
717 BStr(const VARIANT
& var
)
729 void assign(const VARIANT
& var
);
731 operator BSTR() const
733 return _p
? _p
: (BSTR
)L
"";
738 return _p
? wcslen(_p
): 0;
746 /// string class for TCHAR strings
755 typedef wstring super
;
757 typedef string super
;
762 String(LPCTSTR s
) {if (s
) super::assign(s
);}
763 String(LPCTSTR s
, int l
) : super(s
, l
) {}
765 String(const super
& other
) : super(other
) {}
766 String(const String
& other
) : super(other
) {}
769 String(LPCSTR s
) {assign(s
);}
770 String(LPCSTR s
, int l
) {assign(s
, l
);}
771 String(const string
& other
) {assign(other
.c_str());}
772 String
& operator=(LPCSTR s
) {assign(s
); return *this;}
773 void assign(LPCSTR s
) {if (s
) {TCHAR b
[BUFFER_LEN
]; super::assign(b
, MultiByteToWideChar(CP_ACP
, 0, s
, -1, b
, BUFFER_LEN
)-1);} else erase();}
774 void assign(LPCSTR s
, int l
) {if (s
) {TCHAR b
[BUFFER_LEN
]; super::assign(b
, MultiByteToWideChar(CP_ACP
, 0, s
, l
, b
, BUFFER_LEN
));} else erase();}
775 void assign(const BStr
& s
) {int l
= s
.length(); super::assign(s
, l
);}
777 String(LPCWSTR s
) {assign(s
);}
778 String(LPCWSTR s
, int l
) {assign(s
, l
);}
779 String(const wstring
& other
) {assign(other
.c_str());}
780 String
& operator=(LPCWSTR s
) {assign(s
); return *this;}
781 void assign(LPCWSTR s
) {if (s
) {char b
[BUFFER_LEN
]; super::assign(b
, WideCharToMultiByte(CP_ACP
, 0, s
, -1, b
, BUFFER_LEN
, 0, 0)-1);} else erase();}
782 void assign(LPCWSTR s
, int l
) {if (s
) {char b
[BUFFER_LEN
]; super::assign(b
, WideCharToMultiByte(CP_ACP
, 0, s
, l
, b
, BUFFER_LEN
, 0, 0));} else erase();}
783 void assign(const BStr
& s
) {int l
= s
.length(); if (l
) {char b
[BUFFER_LEN
]; super::assign(b
, WideCharToMultiByte(CP_ACP
, 0, s
, l
, b
, BUFFER_LEN
, 0, 0));} else erase();}
785 String(const BStr
& s
) {assign(s
);}
786 String
& operator=(const BStr
& s
) {assign(s
); return *this;}
788 String
& operator=(LPCTSTR s
) {if (s
) super::assign(s
); else erase(); return *this;}
789 String
& operator=(const super
& s
) {super::assign(s
); return *this;}
790 void assign(LPCTSTR s
) {super::assign(s
);}
791 void assign(LPCTSTR s
, int l
) {super::assign(s
, l
);}
793 operator LPCTSTR() const {return c_str();}
796 operator string() const {char b
[BUFFER_LEN
]; return string(b
, WideCharToMultiByte(CP_ACP
, 0, c_str(), -1, b
, BUFFER_LEN
, 0, 0)-1);}
798 operator wstring() const {WCHAR b
[BUFFER_LEN
]; return wstring(b
, MultiByteToWideChar(CP_ACP
, 0, c_str(), -1, b
, BUFFER_LEN
)-1);}
801 String
& printf(LPCTSTR fmt
, ...)
807 super::assign(b
, _vstprintf(b
, fmt
, l
));
813 String
& vprintf(LPCTSTR fmt
, va_list l
)
817 super::assign(b
, _vstprintf(b
, fmt
, l
));
822 String
& appendf(LPCTSTR fmt
, ...)
828 super::append(b
, _vstprintf(b
, fmt
, l
));
834 String
& vappendf(LPCTSTR fmt
, va_list l
)
838 super::append(b
, _vstprintf(b
, fmt
, l
));
844 #define _STRING_DEFINED
847 struct FmtString
: public String
849 FmtString(LPCTSTR fmt
, ...)
866 int l
= wcslen(s
) + 1;
867 _str
= (LPSTR
) malloc(2*l
);
869 if (WideCharToMultiByte(CP_ACP
, 0, s
, -1, _str
, 2*l
, 0, 0) <= 0)
878 operator LPCSTR() {return _str
;}
884 #define UNC(x) ((LPCWSTR)(x))
888 #define ANS(x) ((LPCSTR)(x))
894 int l
= strlen(s
) + 1;
895 _str
= (LPWSTR
) malloc(2*l
);
897 if (MultiByteToWideChar(CP_ACP
, 0, s
, -1, _str
, l
) <= 0)
906 operator LPCWSTR() {return _str
;}
915 // determine windows version string
916 String
get_windows_version_str();
919 /// link dynamicly to functions by using GetModuleHandle() and GetProcAddress()
920 template<typename FCT
> struct DynamicFct
922 DynamicFct(LPCTSTR moduleName
, UINT ordinal
)
924 HMODULE hModule
= GetModuleHandle(moduleName
);
926 _fct
= (FCT
) GetProcAddress(hModule
, (LPCSTR
)ordinal
);
929 DynamicFct(LPCTSTR moduleName
, LPCSTR name
)
931 HMODULE hModule
= GetModuleHandle(moduleName
);
933 _fct
= (FCT
) GetProcAddress(hModule
, name
);
936 FCT
operator*() const {return _fct
;}
937 operator bool() const {return _fct
? true: false;}
944 /// link dynamicly to functions by using LoadLibrary() and GetProcAddress()
945 template<typename FCT
> struct DynamicLoadLibFct
947 DynamicLoadLibFct(LPCTSTR moduleName
, UINT ordinal
)
949 _hModule
= LoadLibrary(moduleName
);
951 _fct
= (FCT
) GetProcAddress(_hModule
, (LPCSTR
)ordinal
);
954 DynamicLoadLibFct(LPCTSTR moduleName
, LPCSTR name
)
956 _hModule
= LoadLibrary(moduleName
);
958 _fct
= (FCT
) GetProcAddress(_hModule
, name
);
963 FreeLibrary(_hModule
);
966 FCT
operator*() const {return _fct
;}
967 operator bool() const {return _fct
? true: false;}
977 Context(const char* ctx
)
984 Context(const char* ctx
, LPCSTR obj
)
992 Context(const char* ctx
, LPCWSTR obj
)
1000 Context(const Context
& other
)
1015 String
toString() const;
1016 String
getStackTrace() const;
1021 static Context
& current() {return *s_current
;}
1026 static Context
* s_current
; ///@todo use TLS
1027 static Context s_main
;
1030 #define CONTEXT_OBJ __ctx__._obj
1031 #define CONTEXT(c) Context __ctx__(c)
1032 #define CURRENT_CONTEXT Context::current()
1033 #define OBJ_CONTEXT(c, o) Context __ctx__(c, o)
1036 extern bool SplitFileSysURL(LPCTSTR url
, String
& dir_out
, String
& fname_out
);
1039 #endif // __cplusplus