From d123e0ce94bf90b2adb0a4000930eb467e293226 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 1 Nov 2006 14:48:34 +0000 Subject: git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@16 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/extern.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 updater/extern.h (limited to 'updater/extern.h') diff --git a/updater/extern.h b/updater/extern.h new file mode 100644 index 0000000..650f2bd --- /dev/null +++ b/updater/extern.h @@ -0,0 +1,20 @@ +#ifndef _EXTERN_INC +#define _EXTERN_INC + +#include "options.h" + + +#define ROOT_FILES_FOLDER _T("root_files") + +// returns 1 if any error, 0 if shutdown is imminent +int ExternProcess(bool restart); + +// move all files in src_folder to backup_folder - put replaced files in backup folder +// if a file in src_folder is a directory, copy it's contents to the same dir in the root folder and +// set that dir as the new root (so that dirs in dirs go in the right place) +void MoveFiles(HANDLE hLogFile, TCHAR *src_folder, TCHAR *dst_folder, TCHAR *backup_folder, TCHAR *root_folder); + + +extern "C" void __declspec(dllexport) CALLBACK ExternalUpdate(HWND hwnd, HINSTANCE hInstance, LPSTR lpszCmdLine, int nCmdShow); + +#endif -- cgit v1.2.3