27 lines
824 B
C++
27 lines
824 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// Thin C++ shim for the MSIX COM server DLL. All of the logic, including the
|
|
// exported `DllGetActivationFactory` and `DllCanUnloadNow`, lives in the
|
|
// `msixcomserver_s` Rust static library linked into this DLL. This shim only
|
|
// provides `DllMain`, which a DLL must have but a Rust static library cannot
|
|
// conveniently export.
|
|
|
|
#include <windows.h>
|
|
|
|
#include "nscore.h"
|
|
|
|
extern "C" {
|
|
|
|
NS_EXPORT_(BOOL)
|
|
DllMain(HINSTANCE DllInstance, DWORD Reason, LPVOID Reserved) {
|
|
UNREFERENCED_PARAMETER(DllInstance);
|
|
UNREFERENCED_PARAMETER(Reason);
|
|
UNREFERENCED_PARAMETER(Reserved);
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
} /* extern "C" */
|