flat assembler
Message board for the users of flat assembler.
Index
> Windows > Using zipfldr.dll for zipping/unzipping files? |
Author |
|
OzzY 27 Jan 2008, 01:08
ZIPFLDR.DLL gives Windows XP the native ZIP support.
I'd like to know what are the functions inside it I can use to zip/unzip files. Does anyone know? |
|||
27 Jan 2008, 01:08 |
|
revolution 27 Jan 2008, 04:31
IIRC zipfldr can unzip only.
zlib and 7zip are probably more useful, both are open source. |
|||
27 Jan 2008, 04:31 |
|
Tomasz Grysztar 27 Jan 2008, 20:09
revolution wrote: IIRC zipfldr can unzip only. It can do both. I found some interesting method here: http://www.autohotkey.com/forum/topic15135.html Code: //Create an empty zip file byte[] emptyzip = new byte[]{80,75,5,6,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; FileStream fs = File.Create(args[1]); fs.Write(emptyzip, 0, emptyzip.Length); fs.Flush(); fs.Close(); fs = null; //Copy a folder and its contents into the newly created zip file Shell32.ShellClass sc = new Shell32.ShellClass(); Shell32.Folder SrcFlder = sc.NameSpace(args[0]); Shell32.Folder DestFlder = sc.NameSpace(args[1]); Shell32.FolderItems items = SrcFlder.Items(); DestFlder.CopyHere(items, 20); |
|||
27 Jan 2008, 20:09 |
|
revolution 27 Jan 2008, 20:29
Is that really zipping? I've never seen that before. Looks a little bit like cheating though, where is the use of zipfldr there?
|
|||
27 Jan 2008, 20:29 |
|
revolution 27 Jan 2008, 20:36
It also assumes you are running explorer.exe as your shell.
|
|||
27 Jan 2008, 20:36 |
|
OzzY 12 Feb 2008, 01:00
Any ASM or C example source code?
|
|||
12 Feb 2008, 01:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.