tools/installer/InstallerUtil.h
author Scott Ehlert <ds@alliedmods.net>
Sun Sep 14 02:59:26 2008 -0500 (2008-09-14)
changeset 2288 15c77b21589a
parent 1952 b7aa2b626807
child 2289 44045ead61cd
permissions -rw-r--r--
Eliminated head for dead branch: refac-jit
ds@1952
     1
#ifndef _INCLUDE_INSTALLER_UTIL_H_
ds@1952
     2
#define _INCLUDE_INSTALLER_UTIL_H_
ds@1952
     3
ds@1952
     4
#include "platform_headers.h"
ds@1952
     5
ds@1952
     6
bool IsWhiteSpaceA(const char *stream);
ds@1952
     7
size_t UTIL_FormatArgs(TCHAR *buffer, size_t count, const TCHAR *fmt, va_list ap);
ds@1952
     8
size_t UTIL_Format(TCHAR *buffer, size_t count, const TCHAR *fmt, ...);
ds@1952
     9
size_t UTIL_PathFormat(TCHAR *buffer, size_t count, const TCHAR *fmt, ...);
ds@1952
    10
int tstrcasecmp(const TCHAR *str1, const TCHAR *str2);
ds@1952
    11
int BreakStringA(const char *str, char *out, size_t maxchars);
ds@1952
    12
size_t AnsiToUnicode(const char *str, wchar_t *buffer, size_t maxchars);
ds@1952
    13
const TCHAR *GetFileFromPath(const TCHAR *path);
ds@1952
    14
void GenerateErrorMessage(DWORD err, TCHAR *buffer, size_t maxchars);
ds@1952
    15
size_t UTIL_GetFileSize(const TCHAR *file_path);
ds@1952
    16
size_t UTIL_GetFolderSize(const TCHAR *basepath);
ds@1952
    17
ds@1952
    18
INT_PTR AskToExit(HWND hWnd);
ds@1952
    19
ds@1952
    20
#endif //_INCLUDE_INSTALLER_UTIL_H_