예제 #1
0
        public unsafe MpqFile OpenFile(string szFileName, OpenFileFlags dwSearchScope)
        {
            IntPtr h;
            IntPtr hp = (IntPtr)(&h);
            bool   r  = StormLib.SFileOpenFileEx(handle, szFileName, dwSearchScope, hp);

            if (!r)
            {
                return(null);
            }
            return(new MpqFile(this, h));
        }
예제 #2
0
파일: CAvi.cs 프로젝트: Mizca/Donchi
 private static extern uint AVIFileOpen(out IntPtr ppfile, string szFile, OpenFileFlags mode, IntPtr pclsidHandler);
예제 #3
0
 public static extern bool OpenFileEx(IntPtr archiveHandle, [In] [MarshalAs(UnmanagedType.LPStr)] string fileName, OpenFileFlags searchScope, out IntPtr fileHandle);
예제 #4
0
 //[return: MarshalAs(UnmanagedType.Bool)]
 public static extern IntPtr OpenFileEx(IntPtr archiveHandle, [In][MarshalAs(UnmanagedType.LPStr)] string fileName, OpenFileFlags searchScope, out IntPtr fileHandle);
예제 #5
0
 public unsafe MpqFile OpenFile(string szFileName, OpenFileFlags dwSearchScope)
 {
     IntPtr h;
     IntPtr hp = (IntPtr)(&h);
     bool r = StormLib.SFileOpenFileEx(handle, szFileName, dwSearchScope, hp);
     if (!r)
         return null;
     return new MpqFile(this, h);
 }
예제 #6
0
 public static extern bool SFileExtractFile(
     IntPtr archiveHandle,
     [MarshalAs(UnmanagedType.LPStr)] string toExtract,
     [MarshalAs(UnmanagedType.LPStr)] string extracted,
     [MarshalAs(UnmanagedType.U4)] OpenFileFlags searchScope);
예제 #7
0
 public static extern bool SFileOpenFileEx(IntPtr hMpq, [MarshalAs(UnmanagedType.LPStr)] string szFileName,
                                           [MarshalAs(UnmanagedType.U4)] OpenFileFlags dwSearchScope, IntPtr phFile);
예제 #8
0
 extern internal static uint AVIFileOpen(out IntPtr ppfile, string szFile, OpenFileFlags mode, IntPtr pclsidHandler);