Click here to Skip to main content
13,148,182 members (42,395 online)
Click here to Skip to main content

Stats

129K views
2.4K downloads
104 bookmarked
Posted 17 Mar 2008

Windows Mobile Remote Controller

, 28 Mar 2008
Control your Windows Mobile device from your desktop.
CeRemoteClient
CeRemoteClient.aps
CeRemoteClient.rc.old
Release
CeRemoteClient.exe
CeRemoteClient.exe.intermediate.manifest
CeRemoteClient.res
mt.dep
vc80.idb
zlibwapi.dll
res
CeRemoteClient.ico
toolbar.bmp
Toolbar_TC.bmp
resource.h.old
zlib123
amiga
Makefile.pup
Makefile.sas
as400
bndsrc
compile.clp
ChangeLog
configure
contrib
ada
buffer_demo.adb
mtest.adb
read.adb
test.adb
zlib.adb
zlib.ads
zlib.gpr
zlib-streams.adb
zlib-streams.ads
zlib-thin.adb
zlib-thin.ads
asm586
README.586
asm686
README.686
blast
Makefile
README
test.pk
delphi
ZLib.pas
ZLibConst.pas
zlibd32.mak
dotzlib
DotZLib.build
DotZLib.chm
DotZLib
infback9
README
inflate86
iostream
iostream2
iostream3
README
test.cc
TODO
zfstream.cc
masm686
masmx64
masmx86
gvmat32.obj
inffas32.obj
minizip
ChangeLogUnzip
Makefile
pascal
example.pas
zlibd32.mak
zlibpas.pas
puff
Makefile
README
zeros.raw
README.contrib
testzlib
untgz
Makefile
Makefile.msc
vstudio
vc7
zlibvc.def
vc8
Release
adler32.cod
compress.cod
crc32.cod
deflate.cod
gvmat32c.cod
gzio.cod
infback.cod
inffast.cod
inflate.cod
inftrees.cod
ioapi.cod
iowin32.cod
trees.cod
uncompr.cod
unzip.cod
vc80.idb
zip.cod
zlib.res
zlibwapi.dll
zlibwapi.exp
zlibwapi.lib
zlibwapi.map
zutil.cod
x86
ZlibDllDebug
Tmp
zlib.res
vc80.idb
zlibwapi.dll
zlibwapi.exp
zlibwapi.lib
zlibwapi.map
ZlibDllRelease
Tmp
adler32.cod
compress.cod
crc32.cod
deflate.cod
gvmat32c.cod
gzio.cod
infback.cod
inffast.cod
inflate.cod
inftrees.cod
ioapi.cod
iowin32.cod
trees.cod
uncompr.cod
unzip.cod
zip.cod
zlib.res
zutil.cod
vc80.idb
zlibwapi.dll
zlibwapi.exp
zlibwapi.lib
zlibwapi.map
zlibvc.def
examples
README.examples
FAQ
INDEX
make_vms.com
Makefile
Makefile.in
msdos
Makefile.bor
Makefile.dj2
Makefile.emx
Makefile.msc
Makefile.tc
old
descrip.mms
Makefile.riscos
os2
Makefile.os2
zlib.def
README
projects
README.projects
visualc6
example.dsp
minigzip.dsp
zlib.dsp
zlib.dsw
qnx
package.qpg
README
win32
Makefile.bor
Makefile.emx
Makefile.gcc
Makefile.msc
zlib.def
zlib.3
CeRemSrv
Pocket PC 2003 (ARMV4)
Release
CeRemSrv.dll
Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
Release
CeRemSrv.dll
Windows Mobile 6 Professional SDK (ARMV4I)
Release
CeRemSrv.dll
zlib
amiga
Makefile.pup
Makefile.sas
ChangeLog
configure
contrib
asm386
zlibvc.def
zlibvc.dsp
zlibvc.dsw
asm586
README.586
asm686
README.686
delphi
zlib.mak
zlibdef.pas
delphi2
d_zlib.bpr
zlib.bpg
zlib.bpr
zlib.pas
zlib32.bpr
iostream
iostream2
minizip
ChangeLogUnzip
Makefile
unzip.def
zip.def
zlibvc.def
zlibvc.dsp
zlibvc.dsw
README.contrib
untgz
Makefile
makefile.w32
descrip.mms
FAQ
INDEX
Make_vms.com
Makefile
Makefile.in
Makefile.riscos
msdos
Makefile.b32
Makefile.bor
Makefile.dj2
Makefile.emx
Makefile.msc
Makefile.tc
Makefile.w32
Makefile.wat
zlib.def
nt
Makefile.emx
Makefile.gcc
Makefile.nt
zlib.dnt
os2
Makefile.os2
zlib.def
README
wince
evc3
example.vcp
example.vcw
minigzip.vcp
minigzip.vcw
zlibce.vcp
zlibce.vcw
evc4
ARMV4Dbg
zlibce.dll
zlibce.exp
zlibce.lib
ARMV4Rel
zlibce.dll
zlibce.exp
zlibce.lib
example.vcp
example.vcw
minigzip.vcp
minigzip.vcw
zlibce.vcl
zlibce.vcp
zlibce.vcw
README
READMEJ
vcce
example.dsp
example.dsw
minigzip.dsp
minigzip.dsw
zlibce.dsp
zlibce.dsw
VS2005
ARMV4Dbg
zlibce.dll
zlibce.exp
zlibce.lib
ARMV4Rel
zlibce.dll
zlibce.exp
zlibce.lib
example.vcp
example.vcw
minigzip.vcp
minigzip.vcw
Pocket PC 2003 (ARMV4)
Debug
vc80.idb
zlibce.lib
Release
vc80.idb
zlibce.lib
Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
Release
vc80.idb
zlibce.dll
zlibce.exp
zlibce.lib
Windows Mobile 5.0 Smartphone SDK (ARMV4I)
Release
vc80.idb
zlibce.dll
zlibce.exp
zlibce.lib
Windows Mobile 6 Professional SDK (ARMV4I)
Release
vc80.idb
zlibce.lib
zlibce.vcl
zlibce.vcp
zlibce.vcw
zlib.diff
zlibce.def
zlib.3
/* blast.h -- interface for blast.c
  Copyright (C) 2003 Mark Adler
  version 1.1, 16 Feb 2003

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the author be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

  Mark Adler    madler@alumni.caltech.edu
 */


/*
 * blast() decompresses the PKWare Data Compression Library (DCL) compressed
 * format.  It provides the same functionality as the explode() function in
 * that library.  (Note: PKWare overused the "implode" verb, and the format
 * used by their library implode() function is completely different and
 * incompatible with the implode compression method supported by PKZIP.)
 */


typedef unsigned (*blast_in)(void *how, unsigned char **buf);
typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len);
/* Definitions for input/output functions passed to blast().  See below for
 * what the provided functions need to do.
 */


int blast(blast_in infun, void *inhow, blast_out outfun, void *outhow);
/* Decompress input to output using the provided infun() and outfun() calls.
 * On success, the return value of blast() is zero.  If there is an error in
 * the source data, i.e. it is not in the proper format, then a negative value
 * is returned.  If there is not enough input available or there is not enough
 * output space, then a positive error is returned.
 *
 * The input function is invoked: len = infun(how, &buf), where buf is set by
 * infun() to point to the input buffer, and infun() returns the number of
 * available bytes there.  If infun() returns zero, then blast() returns with
 * an input error.  (blast() only asks for input if it needs it.)  inhow is for
 * use by the application to pass an input descriptor to infun(), if desired.
 *
 * The output function is invoked: err = outfun(how, buf, len), where the bytes
 * to be written are buf[0..len-1].  If err is not zero, then blast() returns
 * with an output error.  outfun() is always called with len <= 4096.  outhow
 * is for use by the application to pass an output descriptor to outfun(), if
 * desired.
 *
 * The return codes are:
 *
 *   2:  ran out of input before completing decompression
 *   1:  output error before completing decompression
 *   0:  successful decompression
 *  -1:  literal flag not zero or one
 *  -2:  dictionary size not in 4..6
 *  -3:  distance is too far back
 *
 * At the bottom of blast.c is an example program that uses blast() that can be
 * compiled to produce a command-line decompression filter by defining TEST.
 */

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

João Paulo Figueira
Software Developer (Senior) Frotcom International
Portugal Portugal
I work on R&D for Frotcom International, a company that develops web-based fleet management solutions.

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170924.2 | Last Updated 28 Mar 2008
Article Copyright 2008 by João Paulo Figueira
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid