summaryrefslogtreecommitdiff
path: root/library/Recycler/recycler.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:04:59 +0200
commitf570e2f2685aa43aa518c2f8578391c1847cddbe (patch)
treeb9376b3a7e807c5e0c4cf3d5615c14034d9675d6 /library/Recycler/recycler.h
parent3.2 (diff)
downloadFreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.gz
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.bz2
FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.zip
3.3
Diffstat (limited to 'library/Recycler/recycler.h')
-rw-r--r--library/Recycler/recycler.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/library/Recycler/recycler.h b/library/Recycler/recycler.h
new file mode 100644
index 00000000..59bec9dc
--- /dev/null
+++ b/library/Recycler/recycler.h
@@ -0,0 +1,24 @@
+#ifndef RECYCLER_DLL_H
+#define RECYCLER_DLL_H
+
+#ifdef RECYCLER_DLL_EXPORTS
+#define RECYCLER_DLL_API extern "C" __declspec(dllexport)
+#else
+#define RECYCLER_DLL_API extern "C" __declspec(dllimport)
+#endif
+
+
+namespace Utility
+{
+//COM needs to be initialized before calling any of these functions! CoInitializeEx/CoUninitialize
+
+RECYCLER_DLL_API
+bool moveToRecycleBin(const wchar_t* fileNames[],
+ size_t fileNo, //size of fileNames array
+ wchar_t* errorMessage,
+ size_t errorBufferLen);
+}
+
+
+
+#endif //RECYCLER_DLL_H
bgstack15