summaryrefslogtreecommitdiff
path: root/plugins/Updater/utils.h
blob: f65970c2369c5ae28d77f2b80db7f9b5c77297a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _UTILS_INC
#define _UTILS_INC

#include "xmldata.h"

bool VersionFromString(const char *szVer, DWORD *pdwVer);
int CheckForFileID(char *update_url, char *version_url, char *name);
bool CreatePath(const TCHAR *path);
bool IsAdminRequired(void);
void GetRootDir(TCHAR *szPath);

// must 'free' return val
TCHAR *GetTString(const char *asc);
// use system default codepage - called from external process where langpack codepage is not (easily) accessible

void RemoveFolder(const TCHAR *src_folder);
bool FolderIsEmpty(const TCHAR *folder);
bool DeleteNonDlls(const TCHAR *folder);

#endif