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 static extern int LZOpenFileW( string lpFileName, ref OpenFileStruct lpReOpenBuf, OpenFileStyle wStyle);