diff options
Diffstat (limited to 'updater/utils.h')
-rw-r--r-- | updater/utils.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/updater/utils.h b/updater/utils.h new file mode 100644 index 0000000..5d915a4 --- /dev/null +++ b/updater/utils.h @@ -0,0 +1,26 @@ +#ifndef _UTILS_INC
+#define _UTILS_INC
+
+#include <shlobj.h>
+#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);
+
+// must 'free' return val
+TCHAR *GetTString(const char *asc);
+// use system default codepage - called from external process where langpack codepage is not (easily) accessible
+TCHAR *GetTStringACP(const char *asc);
+
+char *GetAString(const TCHAR *t);
+
+void RemoveFolder(const TCHAR *src_folder);
+
+bool FolderIsEmpty(const TCHAR *folder);
+
+bool DeleteNonDlls(const TCHAR *folder);
+
+#endif
|