1 #ifndef _INCLUDE_INSTALLER_UTIL_H_
2 #define _INCLUDE_INSTALLER_UTIL_H_
4 #include "platform_headers.h"
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);
18 INT_PTR AskToExit(HWND hWnd);
20 #endif //_INCLUDE_INSTALLER_UTIL_H_