public static bool ShowFileProperties(string Filename) { ShellExecuteInfo info = default; info.CbSize = System.Runtime.InteropServices.Marshal.SizeOf(info); info.LpVerb = "properties"; info.LpFile = Filename; info.NShow = SW_SHOW; info.FMask = SEE_MASK_INVOKEIDLIST; return(ShellExecuteEx(ref info)); }
private static extern bool ShellExecuteEx(ref ShellExecuteInfo lpExecInfo);