Source code
Revision control
Copy as Markdown
Other Tools
/* 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
// Thin C++ shim for the MSIX COM server DLL. All of the logic, including the
// exported `DllGetClassObject` 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" */