Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/installer-ca/abp_ca.cpp

Issue 11521026: initial custom action library, "hello, world" quality (Closed)
Patch Set: Created Sept. 3, 2013, 12:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/installer-ca/abp_ca.cpp
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/installer-ca/abp_ca.cpp
@@ -0,0 +1,37 @@
+//-------------------------------------------------------------------------------------------------
+// <copyright file="wixca.cpp" company="Outercurve Foundation">
+// Copyright (c) 2004, Outercurve Foundation.
+// This software is released under Microsoft Reciprocal License (MS-RL).
+// The license and further copyright text can be found in the file
+// LICENSE.TXT at the root directory of the distribution.
+// </copyright>
+//
+// <summary>
+// Windows Installer XML CustomAction DllMain function.
+// </summary>
+//-------------------------------------------------------------------------------------------------
+#include "precomp.h"
+
+/********************************************************************
+DllMain - standard entry point for all WiX CustomActions
+
+********************************************************************/
+extern "C" BOOL WINAPI DllMain(
+ IN HINSTANCE hInst,
+ IN ULONG ulReason,
+ IN LPVOID)
+{
+ switch (ulReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ WcaGlobalInitialize(hInst);
+ break;
+
+ case DLL_PROCESS_DETACH:
+ WcaGlobalFinalize();
+ break;
+ }
+
+ return TRUE;
+}
+

Powered by Google App Engine
This is Rietveld