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
serial.h
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:
Windows Kernel
Development Platform:
Visual C++
- /*
- * serial.h - Access serialization routines description.
- */
- /* Types
- ********/
- typedef struct _serialcontrol
- {
- BOOL (*AttachProcess)(HMODULE);
- BOOL (*DetachProcess)(HMODULE);
- BOOL (*AttachThread)(HMODULE);
- BOOL (*DetachThread)(HMODULE);
- }
- SERIALCONTROL;
- DECLARE_STANDARD_TYPES(SERIALCONTROL);
- typedef struct _nonreentrantcriticalsection
- {
- CRITICAL_SECTION critsec;
- #ifdef DEBUG
- DWORD dwOwnerThread;
- #endif /* DEBUG */
- BOOL bEntered;
- }
- NONREENTRANTCRITICALSECTION;
- DECLARE_STANDARD_TYPES(NONREENTRANTCRITICALSECTION);
- /* Prototypes
- *************/
- /* serial.c */
- #ifdef DEBUG
- extern BOOL SetSerialModuleIniSwitches(void);
- #endif /* DEBUG */
- extern void InitializeNonReentrantCriticalSection(PNONREENTRANTCRITICALSECTION);
- extern BOOL EnterNonReentrantCriticalSection(PNONREENTRANTCRITICALSECTION);
- extern void LeaveNonReentrantCriticalSection(PNONREENTRANTCRITICALSECTION);
- extern void DeleteNonReentrantCriticalSection(PNONREENTRANTCRITICALSECTION);
- #ifdef DEBUG
- extern BOOL NonReentrantCriticalSectionIsOwned(PCNONREENTRANTCRITICALSECTION);
- extern DWORD GetNonReentrantCriticalSectionOwner(PCNONREENTRANTCRITICALSECTION);
- #endif
- extern BOOL BeginExclusiveAccess(void);
- extern void EndExclusiveAccess(void);
- #ifdef DEBUG
- extern BOOL AccessIsExclusive(void);
- #endif /* DEBUG */
- extern HMODULE GetThisModulesHandle(void);
- /* functions to be provided by client */
- #ifdef DEBUG
- extern BOOL SetAllIniSwitches(void);
- #endif
- /* Global Variables
- *******************/
- /* serialization control structure */
- extern CSERIALCONTROL g_cserctrl;