本书是Windows程序设计领域广受推崇的圣经级著作。书中深入剖析了Windows程序员必须掌握的底层实现机理,通过大量贴近实战、精心编写的代码,详细阐述了Windows的各种基本要素,如字符和字符串、内核对象、进程、作业、线程、纤程、内存管理、DLL和异常处理等。
新版做了较大幅度的更新。一些章节(如第11章)全面重写,其他章节也有重要修订,以涵盖Windows最新版本(Windows Vista和Windows Server 2008)的核心特性,支持64位Windows。代码主要用C++进行了全面改写,更加简明易懂。
本书是Windows程序设计领域的名著,涵盖了Windows的最新版本Vista 以及Windows XP的最新内容。书中全面深入地介绍了Windows的各种基本要素,如进程、线程池、虚拟内存、DLL、设备I/O和SEH 等,并列举了大量应用程序,精辟地分析了要素的使用方法。
本书适于各层次Windows编程人员阅读。
Part I Required Reading
1 Error Handling
2 Working with Characters and Strings
3 Kernel Objects
Part II Getting Work Done
4 Processes
5 Jobs
6 Thread Basics
7 Thread Scheduling, Priorities, and Affinities
8 Thread Synchronization in User Mode
9 Thread Synchronization with Kernel Objects
10 Synchronous and Asynchronous Device I/O
11 The Windows Thread Pool
12 Fibers
Part III Memory Management
13 Windows Memory Architecture
14 Exploring Virtual Memory
15 Using Virtual Memory in Your Own Applications
16 A Thread’s Stack
17 Memory-Mapped Files
18 Heaps
Part IV Dynamic-Link Libraries
19 DLL Basics
20 DLL Advanced Techniques
21 Thread-Local Storage
22 DLL Injection and API Hooking
Part V Structured Exception Handling
23 Termination Handlers
24 Exception Handlers and Software Exceptions
25 Unhandled Exceptions, Vectored Exception Handling, and C++ Exceptions
26 Error Reporting and Application Recovery
Part VI Appendixes
A The Build Environment
B Message Crackers, Child Control Macros, and API Macros
Index