Skip to content

Commit

Permalink
Import code from old v4 repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rseanhall committed Feb 3, 2019
1 parent d2f2186 commit 72f3dce
Show file tree
Hide file tree
Showing 20 changed files with 2,350 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/ca/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.

#include "precomp.h"

/********************************************************************
DllMain - standard entry point for all WiX custom actions.
********************************************************************/
extern "C" BOOL WINAPI DllMain(
IN HINSTANCE hInstance,
IN ULONG ulReason,
IN LPVOID)
{
switch(ulReason)
{
case DLL_PROCESS_ATTACH:
WcaGlobalInitialize(hInstance);
::DisableThreadLibraryCalls(hInstance);
break;

case DLL_PROCESS_DETACH:
WcaGlobalFinalize();
break;
}

return TRUE;
}
18 changes: 18 additions & 0 deletions src/ca/precomp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.


#include <windows.h>
#include <msiquery.h>
#include <intsafe.h>
#include <strsafe.h>

#include "wcautil.h"
#include "fileutil.h"
#include "strutil.h"
#include "memutil.h"
#include "regutil.h"
#include "dictutil.h"
#include "deputil.h"

#include "CustomMsiErrors.h"
Loading

0 comments on commit 72f3dce

Please sign in to comment.