summaryrefslogtreecommitdiff
path: root/tests/src/Interop/NativeCallable/NativeCallableDll.cpp
blob: a90109bed5ee7f114c7529c865b5549ea1da51cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#include <xplatform.h> 

typedef int (STDMETHODCALLTYPE *CALLBACKPROC)(int n);

extern "C" DLL_EXPORT int STDMETHODCALLTYPE CallManagedProc(CALLBACKPROC pCallbackProc, int n)
{
    return pCallbackProc(n);
}