Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'windirstat/globalhelpers.h')
-rw-r--r--windirstat/globalhelpers.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/windirstat/globalhelpers.h b/windirstat/globalhelpers.h
new file mode 100644
index 0000000..08cf640
--- /dev/null
+++ b/windirstat/globalhelpers.h
@@ -0,0 +1,53 @@
+// globalhelpers.h - Declaration of global helper functions
+//
+// WinDirStat - Directory Statistics
+// Copyright (C) 2003 Bernhard Seifert
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// Author: bseifert@users.sourceforge.net, bseifert@daccord.net
+
+#pragma once
+
+
+CString GetLocaleString(LCTYPE lctype, LANGID langid);
+CString GetLocaleLanguage(LANGID langid);
+CString GetLocaleThousandSeparator();
+CString GetLocaleDecimalSeparator();
+CString FormatBytes(LONGLONG n);
+CString FormatLongLongHuman(LONGLONG n);
+CString FormatCount(LONGLONG n);
+CString FormatDouble(double d);
+CString PadWidthBlanks(CString n, int width);
+CString FormatFileTime(const FILETIME& t);
+CString FormatMilliseconds(DWORD ms);
+CString GetParseNameOfMyComputer() throw (CException *);
+void GetPidlOfMyComputer(LPITEMIDLIST *ppidl) throw (CException *);
+void ShellExecuteWithAssocDialog(HWND hwnd, LPCTSTR filename) throw (CException *);
+bool GetVolumeName(LPCTSTR rootPath, CString& volumeName);
+CString FormatVolumeName(CString rootPath);
+CString PathFromVolumeName(CString name);
+void MyGetDiskFreeSpace(LPCTSTR pszRootPath, LONGLONG& total, LONGLONG& unused);
+bool Is256Colors();
+CString GetFolderNameFromPath(LPCTSTR path);
+CString GetCOMSPEC();
+void WaitForHandleWithRepainting(HANDLE h);
+void NormalizeColor(int& red, int& green, int& blue);
+bool FolderExists(LPCTSTR path);
+bool DriveExists(const CString& path);
+CString GetUserName();
+bool IsHexDigit(int c);
+//CString GetAppFileName();
+//CString GetAppFolder();