@ 261103.1 · fetching

230531.1 · 0f1f04f81a9b9a226abc9a5cdaadf5d637431c34

Add support for V8 and adopt the API changes (#2)

reading declarations

Changes to src/ApiLoaders/NodeApi_win.cpp. All files

src/ApiLoaders/NodeApi_win.cpp

new file mode 100644@@ -0,0 +1,23 @@+// Copyright (c) Microsoft Corporation.+// Licensed under the MIT License.++#include "NodeApi.h"+#ifndef WIN32_LEAN_AND_MEAN+#define WIN32_LEAN_AND_MEAN+#endif+#ifndef NOMINMAX+#define NOMINMAX+#endif+#include <windows.h>++namespace Microsoft::NodeApiJsi {++LibHandle LibLoader::loadLib(const char *libName) {+  return reinterpret_cast<LibHandle>(LoadLibraryA(libName));+}++FuncPtr LibLoader::getFuncPtr(LibHandle libHandle, const char *funcName) {+  return reinterpret_cast<FuncPtr>(GetProcAddress(reinterpret_cast<HMODULE>(libHandle), funcName));+}++} // namespace Microsoft::NodeApiJsi