summaryrefslogtreecommitdiff
path: root/updater/utils.h
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:48:34 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:48:34 +0000
commitd123e0ce94bf90b2adb0a4000930eb467e293226 (patch)
treed414dea59908105c4d2f256199a610e0a69c8690 /updater/utils.h
parenta13e82647294da4add976a24335fec50d7bfe905 (diff)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@16 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/utils.h')
-rw-r--r--updater/utils.h26
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