예제 #1
0
        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)));
        }
예제 #2
0
        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));
        }
예제 #3
0
 public static extern int LZOpenFileW(
     string lpFileName,
     ref OpenFileStruct lpReOpenBuf,
     OpenFileStyle wStyle);