示例#1
0
        public static int PackFiles(
            [MarshalAs(UnmanagedType.LPStr)] string packedFile,
            [MarshalAs(UnmanagedType.LPStr)] string subPath,
            [MarshalAs(UnmanagedType.LPStr)] string srcPath,
            IntPtr addListPtr, int flags)
        {
            List <string> addList = TcUtils.ReadStringListAnsi(addListPtr);

            return(PackFilesInternal(packedFile, subPath, srcPath, addList, (PackFilesFlags)flags));
        }
示例#2
0
        public static int DeleteFiles([MarshalAs(UnmanagedType.LPStr)] string packedFile, IntPtr deleteListPtr)
        {
            List <string> deleteList = TcUtils.ReadStringListAnsi(deleteListPtr);

            return(DeleteFilesInternal(packedFile, deleteList));
        }