/// <summary> /// Show file properties /// </summary> /// <param name="Filename"></param> public static void ShowFileProperties(string filename) { SHELLEXECUTEINFO info = new SHELLEXECUTEINFO(); info.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(info); info.lpVerb = "open"; info.lpFile = filename; info.nShow = SW_SHOW; info.fMask = SEE_MASK_INVOKEIDLIST; ShellExecuteEx(ref info); }
static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo);