- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
compress.h
资源名称:HookAPI [点击查看]
上传用户:nbcables
上传日期:2007-01-11
资源大小:1243k
文件大小:1k
源码类别:
钩子与API截获
开发平台:
Visual C++
- #ifndef _COMPRESS_H_
- typedef int (WINAPI *COMPRESSDATA)(char *, int, char *, int *);
- typedef int (WINAPI *DECOMPRESSDATA)(char *, int, char *, int *);
- typedef struct
- {
- char app[128];
- char ip[16];
- char local_port_type[2];
- int server_port;
- }COMPRESS_INFO;
- class CompressFilter
- {
- public:
- CompressFilter();
- ~CompressFilter();
- BOOL CompressCheck(char *remote_ip, int local_port, int remote_port);
- int CompressData(char *data, int data_len, char *data_compressed, int *pdata_compressed_len);
- int DecompressData(char *data, int data_len, char *data_decompressed, int *pdata_decompressed_len);
- public:
- HANDLE hModCompress;
- COMPRESSDATA myCompressData;
- DECOMPRESSDATA myDecompressData;
- COMPRESS_INFO *m_pCompressInfo;
- int m_compress_info_count;
- };
- #endif