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)); }
private static extern uint AVIFileOpen(out IntPtr ppfile, string szFile, OpenFileFlags mode, IntPtr pclsidHandler);
public static extern bool OpenFileEx(IntPtr archiveHandle, [In] [MarshalAs(UnmanagedType.LPStr)] string fileName, OpenFileFlags searchScope, out IntPtr fileHandle);
//[return: MarshalAs(UnmanagedType.Bool)] public static extern IntPtr OpenFileEx(IntPtr archiveHandle, [In][MarshalAs(UnmanagedType.LPStr)] string fileName, OpenFileFlags searchScope, out IntPtr fileHandle);
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); }
public static extern bool SFileExtractFile( IntPtr archiveHandle, [MarshalAs(UnmanagedType.LPStr)] string toExtract, [MarshalAs(UnmanagedType.LPStr)] string extracted, [MarshalAs(UnmanagedType.U4)] OpenFileFlags searchScope);
public static extern bool SFileOpenFileEx(IntPtr hMpq, [MarshalAs(UnmanagedType.LPStr)] string szFileName, [MarshalAs(UnmanagedType.U4)] OpenFileFlags dwSearchScope, IntPtr phFile);
extern internal static uint AVIFileOpen(out IntPtr ppfile, string szFile, OpenFileFlags mode, IntPtr pclsidHandler);