public unsafe static LzHandle LzOpenFile( string path, OpenFileStyle openStyle = OpenFileStyle.Read | OpenFileStyle.ShareCompat) { OpenFileStruct ofs = new OpenFileStruct(); return(new LzHandle(ValidateLzResult(Imports.LZOpenFileW(path, ref ofs, openStyle), path))); }
public unsafe static LzHandle LzOpenFile( string path, out string uncompressedName, OpenFileStyle openStyle = OpenFileStyle.Read | OpenFileStyle.ShareCompat) { OpenFileStruct ofs = new OpenFileStruct(); int result = ValidateLzResult(Imports.LZOpenFileW(path, ref ofs, openStyle), path); uncompressedName = ofs.PathName; return(new LzHandle(result)); }
public unsafe static LzHandle LzOpenFile( string path, out string uncompressedName, OpenFileStyle openStyle = OpenFileStyle.Read | OpenFileStyle.ShareCompat) { OFSTRUCT ofs = new OFSTRUCT(); int result = ValidateLzResult(Imports.LZOpenFileW(path, ref ofs, openStyle), path); uncompressedName = BufferHelper.GetNullTerminatedAsciiString(ofs.szPathName); return(new LzHandle(result)); }
public static extern int AVIFileOpenW(ref IntPtr pAviFile, [MarshalAs(UnmanagedType.LPWStr)] string szFile, OpenFileStyle uMode, int lpHandler);
public static extern int OpenFile([System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPStr)] string lpFileName, out OFSTRUCT lpReOpenBuff, OpenFileStyle uStyle);
public static extern int LZOpenFileW( string lpFileName, ref OpenFileStruct lpReOpenBuf, OpenFileStyle wStyle);
public static extern int OpenFile( [MarshalAs(UnmanagedType.LPStr)] string lpFileName, out OFSTRUCT lpReOpenBuff, OpenFileStyle uStyle);