[ACGENRAL] Implement the DisableThemes shim. CORE-11927
[reactos.git] / reactos / dll / appcompat / shims / genral / main.c
diff --git a/reactos/dll/appcompat/shims/genral/main.c b/reactos/dll/appcompat/shims/genral/main.c
new file mode 100644 (file)
index 0000000..37bd125
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         ReactOS Shim library
+ * FILE:            dll/appcompat/shims/genral/main.c
+ * PURPOSE:         Shim entrypoint
+ * PROGRAMMER:      Mark Jansen
+ */
+
+#include <windows.h>
+#include <strsafe.h>
+#include <shimlib.h>
+
+/* Forward to the generic implementation */
+PHOOKAPI WINAPI GetHookAPIs(IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
+{
+    return ShimLib_GetHookAPIs(szCommandLine, wszShimName, pdwHookCount);
+}
+
+/* Forward to the generic implementation */
+BOOL WINAPI NotifyShims(DWORD fdwReason, PVOID ptr)
+{
+    return ShimLib_NotifyShims(fdwReason, ptr);
+}
+
+BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
+{
+    switch(dwReason)
+    {
+    case DLL_PROCESS_ATTACH:
+        ShimLib_Init(hInstance);
+        break;
+    case DLL_PROCESS_DETACH:
+        ShimLib_Deinit();
+        break;
+    }
+    return TRUE;
+}