Closed elachlan closed 1 week ago
Standard PInvokes generated by CsWin32 have DefaultDllImportSearchPaths attribute applied, but LocalExternFunction seems to be missing it.
DefaultDllImportSearchPaths
Example:
[SupportedOSPlatform("windows10.0.15063")] internal static winmdroot.Foundation.BOOL SetProcessDpiAwarenessContext(winmdroot.UI.HiDpi.DPI_AWARENESS_CONTEXT value) { Marshal.SetLastSystemError(0); winmdroot.Foundation.BOOL __retVal = LocalExternFunction(value); Marshal.SetLastPInvokeError(Marshal.GetLastSystemError()); return __retVal; [DllImport("USER32.dll", ExactSpelling = true, EntryPoint = "SetProcessDpiAwarenessContext")] static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.UI.HiDpi.DPI_AWARENESS_CONTEXT value); }
Standard PInvokes generated by CsWin32 have
DefaultDllImportSearchPaths
attribute applied, but LocalExternFunction seems to be missing it.Example: