Windows System Programming

Front Cover
Pearson Education, Feb 16, 2010 - Computers - 656 pages

The Definitive Guide to Windows API Programming, Fully Updated for Windows 7, Windows Server 2008, and Windows Vista

Windows System Programming, Fourth Edition, now contains extensive new coverage of 64-bit programming, parallelism, multicore systems, and many other crucial topics. Johnson Hart’s robust code examples have been updated and streamlined throughout. They have been debugged and tested in both 32-bit and 64-bit versions, on single and multiprocessor systems, and under Windows 7, Vista, Server 2008, and Windows XP. To clarify program operation, sample programs are now illustrated with dozens of screenshots.

Hart systematically covers Windows externals at the API level, presenting practical coverage of all the services Windows programmers need, and emphasizing how Windows functions actually behave and interact in real-world applications. Hart begins with features used in single-process applications and gradually progresses to more sophisticated functions and multithreaded environments. Topics covered include file systems, memory management, exceptions, processes, threads, synchronization, interprocess communication, Windows services, and security.

New coverage in this edition includes

  • Leveraging parallelism and maximizing performance in multicore systems
  • Promoting source code portability and application interoperability across Windows, Linux, and UNIX
  • Using 64-bit address spaces and ensuring 64-bit/32-bit portability
  • Improving performance and scalability using threads, thread pools, and completion ports
  • Techniques to improve program reliability and performance in all systems
  • Windows performance-enhancing API features available starting with Windows Vista, such as slim reader/writer locks and condition variables

A companion Web site, jmhartsoftware.com, contains all sample code, Visual Studio projects, additional examples, errata, reader comments, and Windows commentary and discussion.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

63
Thread Synchronization
91
6
Locking Performance and NT6 Enhancements
Performance with Different Locking Techniques 305
Comparing SRW and CS Performance 312
Using a Semaphore Throttle 315

22
23
26
26
Summary
31
33
Figures
The Registry Editor 87
34
Exercises
45
Exercises
52
52
53
54
Sorting Using Based Pointers and Mapping 166
57
61A Process and Its Threads 183
Process Execution Times
66
Exercises
72a
Fibers
Advanced Thread Synchronization
Mutex Broadcast and Signaling 360
Pthreads for Application Portability
Interprocess Communication
114s pest Mailslot Client Thread Function 406
Client Commands and Results 401
Exercises
Socket Client Operation 425
A Service Wrapper
Controlled by sc466
131Controlling Windows Services through the SCM 471
Exercises
File Conversion with Overlapped IO 488
Comparing Performance and Testing Results 491
Securing Windows Objects
UNIXlike File Permissions 531
APPENDIX A Using the Sample Programs
File and Directory Management 556
Memory Management MemoryMapped Files and DLLs 562
Securing Windows Objects 572
Performance Results
File Copy Performance 580
Bibliography
Index
B3

Other editions - View all

Common terms and phrases

About the author (2010)

Johnson M. Hart is a consultant specializing in Microsoft Windows and .NET application development, open systems computing, technical training and writing, and software engineering. He has more than twenty-five years of experience as a software engineer, manager, engineering director, and senior technology consultant at Cilk Arts, Inc., Sierra Atlantic, Hewlett-Packard, and Apollo Computer. He served as computer science professor at the University of Kentucky for nine years, and has authored all four editions of Windows System Programming .

Bibliographic information