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
LinkList.cpp
Package: apispy32.zip [view]
Upload User: tzh4061
Upload Date: 2007-01-08
Package Size: 309k
Code Size: 1k
Category:
Hook api
Development Platform:
Visual C++
- // ----------------------------------- //
- // APISpy32 v2.0 //
- // Copyright 1999 Yariv Kaplan //
- // WWW.INTERNALS.COM //
- // ----------------------------------- //
- #include "LinkList.h"
- #include "APISpy32.h"
- tagAPIInfo *Head = NULL;
- tagAPIInfo *Tail = NULL;
- #ifdef WIN95
- DWORD dwItemIndex = 0;
- tagAPIInfo APIInfoArray[MAX_API];
- #endif
- tagAPIInfo *AddItem()
- {
- tagAPIInfo *Item;
- #ifdef WIN95
- if (dwItemIndex == MAX_API)
- return NULL;
- Item = &APIInfoArray[dwItemIndex];
- dwItemIndex++;
- #endif
- #ifdef WINNT
- Item = new tagAPIInfo;
- #endif
- if (Head == NULL)
- {
- Head = Item;
- Tail = Item;
- }
- else
- {
- Tail->Next = Item;
- Tail = Tail->Next;
- }
- Tail->Next = NULL;
- return Item;
- }
- #ifdef WINNT
- void RemoveItem(tagAPIInfo *Item)
- {
- tagAPIInfo *CurrentItem = Head;
- if (Head == NULL) return;
- if (Item == Head)
- {
- if (Head == Tail) Tail = NULL;
- Head = Head->Next;
- delete Item;
- return;
- }
- while (CurrentItem->Next != Item)
- CurrentItem = CurrentItem->Next;
- CurrentItem->Next = Item->Next;
- if (Item == Tail) Tail = CurrentItem;
- delete Item;
- }
- #endif