Buy Used
Used - Good See details
Price: £8.37

or
 
   
Have one to sell? Sell yours here
Tell the Publisher!
I’d like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Programming the Win32 API and Unix System Services (Microsoft technologies series) [Paperback]

Don E. Merusi
2.0 out of 5 stars  See all reviews (1 customer review)

Available from these sellers.


‹  Return to Product Overview

Table of Contents



1. Processes and Threads.

Creating Threads in Microsoft Windows. Sample Threads Program. Using Thread Local Storage. Controlling Thread Execution. Managing Thread Priority. Working with Fibers in Microsoft Windows. Creating Processes in Microsoft Windows. Creating POSIX Threads in UNIX. Performing One-Time Initialization with POSIX Threads. Scheduling Processes in UNIX: Using the fork(), exec() and wait() Routines. The POSIX Threads Attributes Object. POSIX Thread Scheduling. POSIX Threads Cancellation. POSIX Threads Cancellation Cleanup Handlers. POSIX Threads Thread-Specific Data. The Linux _clone() Routine. Summary.



2. Controlling Concurrent Activity.

Concurrency Control Functions in the Win32 API. Mutexes. Semaphores. Events. Critical Sections. Concurrency Control Functions in UNIX. Semaphores-POSIX Threads Version. Semaphores-System V Version. POSIX Threads Mutexes. POSIX Condition Variables. RW Locks. Using the fcntl Routine for Synchronization. Summary.



3. Preparing for the Unexpected.

UNIX Signals. Establishing a UNIX Signal Handler. The UNIX Signal Mask. The sigwait Function. The sigsetjmp and siglongjmp Routines. UNIX Signal Handling in Microsoft Windows. Exit Handlers. Fork Handlers. Asynchronous Procedure Calls (APCs). Structured Exception Handling. SEH: Termination Handlers. SEH: Exception Handlers. The AbnormalTermination Routine. C++ Exception Handling. Summary.



4. Managing Files and File Systems.

Standard I/O Routines. Microsoft Windows Overview of FAT and NTFS. The CreateFile, ReadFile, and WriteFile Routines. Using APCs with ReadFileEx and WriteFileEx. File Record Locking Using UnLockFile and LockFile. Enhanced File Locking with LockFileEx and UnlockFileEx. Directory Manipulation. Device Manipulation. File Change Notification. File Manipulation. Manipulating a File Pointer. File Times. Memory-Mapped Files. Searching for Files. Getting File Attribute Information. UNIX File System Overview. The AIO Routines in Solaris. File Record Locking Using fcntl. File Attributes Using stat, fstat, or lstat. Manipulating a File Pointer. File Mapping in UNIX. File Times in UNIX. Summary.



5. Working with Memory.

ANSI C Memory Routines. The C++ new and delete Operations. The Microsoft Windows Virtual Memory Management Routines. The VirtualAlloc Routine. The VirtualFree Routine. The VirtualLock Routine. The SetProcessWorkingSetSize Routine. The VirtualUnlock Routine. The VirtualProtect Routine. The VirtualQuery Routine. The GetSystemInfo Routine. The GlobalMemoryStatus Routine. Sample Microsoft Windows VMM Program. The Microsoft Windows Heap Routines. GetProcessHeap, HeapAlloc, HeapReAlloc, HeapSize, and HeapFree. Other Handy Heap Routines. The HeapCreate Routine. Additional Memory Management Functions in Solaris. Routine mctl. The memcntl Routine. Routine mlock and munlock. The getpagesize Routine. The mlockall and munlockall Routines. The mprotect Routine. The plock Routine. The IPC Shared Memory Routines. Summary.



6. Networking and Other Communication Mechanisms.

Basic Windows Communication. Mailslots. Microsoft Windows Named Pipes. The CreateNamedPipe API. The ConnectNamedPipe API. WaitNamedPipe. Microsoft Windows and UNIX TCP and UDP Communications. Connection-Oriented Client-Server Architecture. Big-Endian versus Little-Endian. Connectionless-Oriented Client-Server Architecture. UNIX Unnamed Pipes. UNIX Named Pipes. UNIX Message Services. Summary.



7. Protecting System Resources.

Microsoft Windows Security: Access Tokens and Security Descriptors. Programming Basic Security in Microsoft Windows. InitializeSecurityDescriptor. InitializeAcl. LookupAccountName. AddAccessAllowedAce and AddAccessDeniedAce. Microsoft Windows Sample Security Program. Managing Access Tokens. AdjustTokenPrivileges. LookupPrivilegeValue. OpenProcessToken and OpenThreadToken. SetThreadToken. CheckTokenMembership. GetTokenInformation. LookupAccountSid. GetAclInformation. Dumping an Access Token. Managing Security Descriptors. GetKernelObjectSecurity. GetSecurityDescriptorDacl and GetSecurityDescriptorSacl. SetSecurityDescriptorDacl and SetSecurityDescriptorSacl. Dumping a Security Descriptor. Controlling Privileges/Rights. Adding and Removing ACLs. ACLs in Solaris. Setting and Retrieving ACL Information. Converting ACLs to and from Internal/External Representation. Other UNIX Security Functions. Getting and Setting User IDs and Group IDs. chmod & chown. Summary.



Appendix. The Ice Cream Shop Simulation.


Index.

‹  Return to Product Overview