// // Copyright (c) PlaceholderCompany. All rights reserved. // namespace SystemTrayMenu.DllImports { using System.Runtime.InteropServices; using System.Text; /// /// wraps the methodcalls to native windows dll's. /// public static partial class NativeMethods { public static void Shell32FindExecutable(string lpFile, string lpDirectory, [Out] StringBuilder lpResult) { _ = FindExecutable(lpFile, lpDirectory, lpResult); } [DllImport("shell32.dll", SetLastError = true, CharSet = CharSet.Unicode)] [DefaultDllImportSearchPaths(DllImportSearchPath.UserDirectories)] private static extern int FindExecutable(string lpFile, string lpDirectory, [Out] StringBuilder lpResult); } }