public static class NativeMethods { [DllImport("NativeLib.dll", CallingConvention = CallingConvention.Cdecl)] public static unsafe extern void GetFuncPtr(delegate* unmanaged<char*>* outFuncPtr); }