Openfile

[DllImport("Kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)][return: MarshalAs(UnmanagedType.SysInt)]
public static extern IntPtr OpenFile(string lpFileName,
   [Out] OFSTRUCT lpReOpenBuff,
   uint uStyle
);

Microsoft documentation: Link

Last updated