Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
util.h
Package: HookAPI [view]
Upload User: nbcables
Upload Date: 2007-01-11
Package Size: 1243k
Code Size: 1k
Category:
Hook api
Development Platform:
Visual C++
- #ifndef __UTIL_H__
- #define __UTIL_H__
- #include <winsock.h>
- typedef struct
- {
- char app_name[128];
- char ip[16];
- char password[9];
- }PASSWORD_DATA;
- int ipcmp(char *szip1, char *szip2);
- ULONG GetIntIP(char *szip);
- ULONG my_atoi(char *p);
- void GetFileName(char *fname);
- void WriteLog(char *fmt,...);
- int CheckPassword(char *, char *, char *password);
- int FindData(unsigned char *, int , unsigned char *, int, int);
- char *upper_case(char *p, int len);
- int mreplace(char *buf, int len, char *str, char c);
- int EncryptData(int algrithm, char *password, unsigned char *inbuf, int inbuf_len, unsigned char *outbuf, int *outbuf_len);
- int DecryptData(int algrithm, char *password, unsigned char *inbuf, int inbuf_len, unsigned char *outbuf, int *outbuf_len);
- int GetLocalPortBySocket(SOCKET s);
- int GetLocalIPBySocket(SOCKET s, char *ip);
- int GetRemotePortBySocket(SOCKET s);
- int GetRemoteIPBySocket(SOCKET s, char *ip);
- #endif