File: C:/Program Files/WindowsApps/Microsoft.YourPhone_1.25072.79.0_x64__8wekyb3d8bbwe/NativeHostNE.h
//
// Auto-generated by dnne-gen
//
// .NET Assembly: NativeHost
//
//
// Declare exported functions
//
#ifndef __DNNE_GENERATED_HEADER_NATIVEHOST__
#define __DNNE_GENERATED_HEADER_NATIVEHOST__
#include <stddef.h>
#include <stdint.h>
#ifdef DNNE_COMPILE_AS_SOURCE
#include <dnne.h>
#else
// When used as a header file, the assumption is
// dnne.h will be next to this file.
#include "dnne.h"
#endif // !DNNE_COMPILE_AS_SOURCE
#if (defined(DNNE_WINDOWS))
// Computed from NativeHost.Exports.DllGetActivationFactory
DNNE_EXTERN_C DNNE_API int32_t DNNE_CALLTYPE DllGetActivationFactory(intptr_t activatableClassId, intptr_t* activationFactory);
#endif // (DNNE_WINDOWS)
#if (defined(DNNE_WINDOWS))
// Computed from NativeHost.Exports.DllCanUnloadNow
DNNE_EXTERN_C DNNE_API int32_t DNNE_CALLTYPE DllCanUnloadNow(void);
#endif // (DNNE_WINDOWS)
#endif // __DNNE_GENERATED_HEADER_NATIVEHOST__
//
// Define exported functions
//
#ifdef DNNE_COMPILE_AS_SOURCE
#ifdef DNNE_WINDOWS
#ifdef _WCHAR_T_DEFINED
typedef wchar_t char_t;
#else
typedef unsigned short char_t;
#endif
#else
typedef char char_t;
#endif
//
// Forward declarations
//
extern void* get_callable_managed_function(
const char_t* dotnet_type,
const char_t* dotnet_type_method,
const char_t* dotnet_delegate_type);
extern void* get_fast_callable_managed_function(
const char_t* dotnet_type,
const char_t* dotnet_type_method);
//
// String constants
//
#ifdef DNNE_TARGET_NET_FRAMEWORK
static const char_t* t1_name = DNNE_STR("NativeHost.Exports");
#else
static const char_t* t1_name = DNNE_STR("NativeHost.Exports, NativeHost");
#endif // !DNNE_TARGET_NET_FRAMEWORK
//
// Exports
//
#if (defined(DNNE_WINDOWS))
// Computed from NativeHost.Exports.DllGetActivationFactory
static int32_t (DNNE_CALLTYPE* DllGetActivationFactory_ptr)(intptr_t activatableClassId, intptr_t* activationFactory);
DNNE_EXTERN_C DNNE_API int32_t DNNE_CALLTYPE DllGetActivationFactory(intptr_t activatableClassId, intptr_t* activationFactory)
{
if (DllGetActivationFactory_ptr == NULL)
{
const char_t* methodName = DNNE_STR("DllGetActivationFactory");
DllGetActivationFactory_ptr = (int32_t(DNNE_CALLTYPE*)(intptr_t activatableClassId, intptr_t* activationFactory))get_fast_callable_managed_function(t1_name, methodName);
}
return DllGetActivationFactory_ptr(activatableClassId, activationFactory);
}
#endif // (DNNE_WINDOWS)
#if (defined(DNNE_WINDOWS))
// Computed from NativeHost.Exports.DllCanUnloadNow
static int32_t (DNNE_CALLTYPE* DllCanUnloadNow_ptr)(void);
DNNE_EXTERN_C DNNE_API int32_t DNNE_CALLTYPE DllCanUnloadNow(void)
{
if (DllCanUnloadNow_ptr == NULL)
{
const char_t* methodName = DNNE_STR("DllCanUnloadNow");
DllCanUnloadNow_ptr = (int32_t(DNNE_CALLTYPE*)(void))get_fast_callable_managed_function(t1_name, methodName);
}
return DllCanUnloadNow_ptr();
}
#endif // (DNNE_WINDOWS)
#endif // DNNE_COMPILE_AS_SOURCE