tools/installer/InstallerUtil.h
author David Anderson <dvander@alliedmods.net>
Sun Nov 25 18:50:13 2007 +0000 (2007-11-25)
changeset 1725 ea875bcbc286
parent 1722 2c16f160f5dd
child 2289 44045ead61cd
permissions -rw-r--r--
small clarification to param2 in MenuAction_End
     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_