コード例 #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 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));
        }
コード例 #4
0
ファイル: Win32.cs プロジェクト: tustin2121/tpp-BizHawk2
 public static extern int AVIFileOpenW(ref IntPtr pAviFile, [MarshalAs(UnmanagedType.LPWStr)] string szFile, OpenFileStyle uMode, int lpHandler);
コード例 #5
0
 public static extern int OpenFile([System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPStr)] string lpFileName, out OFSTRUCT lpReOpenBuff,
                                   OpenFileStyle uStyle);
コード例 #6
0
 public static extern int LZOpenFileW(
     string lpFileName,
     ref OpenFileStruct lpReOpenBuf,
     OpenFileStyle wStyle);
コード例 #7
0
ファイル: Win32.cs プロジェクト: PowerOfDark/TeamTest
 public static extern int OpenFile(
     [MarshalAs(UnmanagedType.LPStr)] string
     lpFileName, out OFSTRUCT lpReOpenBuff,
     OpenFileStyle uStyle);
コード例 #8
0
ファイル: Win32.cs プロジェクト: henke37/BizHawk
		public static extern int AVIFileOpenW(ref IntPtr pAviFile, [MarshalAs(UnmanagedType.LPWStr)] string szFile, OpenFileStyle uMode, int lpHandler);