tools/installer/InstallerUtil.h
author David Anderson <dvander@alliedmods.net>
Wed Feb 25 20:07:12 2009 -0500 (2009-02-25)
changeset 2607 f3b8bbe17f85
parent 2289 44045ead61cd
permissions -rw-r--r--
Backed out changeset fa286305bd3f
     1 #ifndef _INCLUDE_INSTALLER_UTIL_H_
     2 #define _INCLUDE_INSTALLER_UTIL_H_
     3 
     4 #include "platform_headers.h"
     5 
     6 bool IsWhiteSpaceA(const char *stream);
     7 size_t UTIL_FormatArgs(TCHAR *buffer, size_t count, const TCHAR *fmt, va_list ap);
     8 size_t UTIL_Format(TCHAR *buffer, size_t count, const TCHAR *fmt, ...);
     9 size_t UTIL_PathFormat(TCHAR *buffer, size_t count, const TCHAR *fmt, ...);
    10 int tstrcasecmp(const TCHAR *str1, const TCHAR *str2);
    11 int BreakStringA(const char *str, char *out, size_t maxchars);
    12 size_t AnsiToUnicode(const char *str, wchar_t *buffer, size_t maxchars);
    13 const TCHAR *GetFileFromPath(const TCHAR *path);
    14 void GenerateErrorMessage(DWORD err, TCHAR *buffer, size_t maxchars);
    15 size_t UTIL_GetFileSize(const TCHAR *file_path);
    16 size_t UTIL_GetFolderSize(const TCHAR *basepath);
    17 
    18 INT_PTR AskToExit(HWND hWnd);
    19 
    20 #endif //_INCLUDE_INSTALLER_UTIL_H_