You are previewing Microsoft Windows 2000 API SuperBible.
O'Reilly logo
Microsoft Windows 2000 API SuperBible

Book Description

Following in the tradition of the Win 95 and Win32 NT SuperBibles, this book is a comprehensive reference for all of the APIs needed by the Windows programmer. It is arranged topically with related functions presented in the same chapter. Using relevant examples that are complete and appropriate to the task at hand, the user will be able to see clearly the most effective usage for each function. The user-friendly organization of the book will save programmers valuable time, and negate the need to sift through vendor supplied documentation with is spotty and disorganized.

Table of Contents

  1. Copyright
  2. About the Author
  3. Acknowledgments
  4. Tell Us What You Think!
  5. Introduction
  6. WINDOWS 2000 PROGRAMMING
    1. User Interface Features
    2. Minimum Requirements
    3. Style Guide
  7. THE WIN32 API
    1. Advantages of Win32
    2. Sample Program
  8. CREATING WINDOWS
    1. Creating the Main Window
    2. Creating Windows Using Existing Classes
    3. Messages When Creating Windows
    4. Creating Windows Function Descriptions
  9. WINDOWS SUPPORT FUNCTIONS
    1. Window Class Data
    2. Attaching Data to a Window
    3. Changing the Appearance of Windows
    4. Windows Support Function Descriptions
  10. MESSAGE PROCESSING
    1. Message Flow
    2. Message Hook Functions
    3. Message-Processing Function Descriptions
  11. MENUS
    1. Main Menus and Pop-up Menus
    2. Menu Support Function Descriptions
  12. RESOURCES
    1. The Resource Script File
    2. Resource Function Descriptions
  13. DIALOG BOXES
    1. Types of Dialog Boxes
    2. The Dialog Box Keyboard Interface
    3. Dynamic Dialog Boxes
    4. Dialog Template Statement Descriptions
    5. Dialog Box Control Statements
    6. Dialog Box Function Descriptions
  14. USER INPUT FUNCTIONS
    1. Mouse Messages
    2. Keyboard Messages
    3. Virtual Keys
    4. User Input Function Descriptions
  15. SCROLLBARS
    1. Scrollbar Basics
    2. Scrollbar Position and Range
    3. Scrollbar Messages
    4. Scrollbar Function Descriptions
  16. MEMORY MANAGEMENT
    1. Memory Architecture
    2. Global Memory
    3. Virtual Memory
    4. Heaps
    5. Memory Management Function Descriptions
  17. THE GRAPHICS DEVICE INTERFACE
    1. The Device Context
    2. Selecting Objects into a Device Context
    3. Private Device Contexts
    4. Origins and Extents
    5. GDI Function Descriptions
  18. BITMAPS, ICONS, AND METAFILES
    1. Bitmaps
    2. Icons
    3. Metafiles
    4. Bitmap, Icon, and Metafile Function Descriptions
  19. PRINTING AND TEXT OUTPUT
    1. Printer Support
    2. Printer Information
    3. Text Characteristics
    4. Printing and Text Output Function Descriptions
  20. PAINTING AND DRAWING
    1. Pens, Brushes, and Other Logical Tools
    2. Specifying an Area for Drawing
    3. Invalidation, Clipping, and the WM_PAINT Message
    4. Painting and Drawing Function Descriptions
  21. PALETTES AND COLOR MATCHING
    1. Hardware Palettes
    2. Color Palettes in Windows
    3. The Logical Palette
    4. Image Color Matching
    5. Color Spaces
    6. Color Profiles
    7. Palettes and Color Matching Function Descriptions
  22. I/O WITH FILES
    1. Creating and Opening Files
    2. Reading and Writing
    3. Sharing Data with File Mapping
    4. File I/O Function Descriptions
  23. THE CLIPBOARD
    1. Clipboard Formats
    2. Windows Management of Clipboard Data
    3. Delayed Rendering of Clipboard Data
    4. CF_OWNERDISPLAY Format
    5. Using Private Clipboard Formats
    6. Clipboard Viewers
    7. Clipboard Function Descriptions
  24. THE REGISTRY
    1. The Registry Architecture
    2. Placing Data in the Registry
    3. The Windows Registry Structure
    4. Registry Function Descriptions
  25. INITIALIZATION FILES
    1. Initialization File Structure
    2. Accessing Initialization Files
    3. Mapping Private INI Files
    4. Initialization File Function Descriptions
  26. SYSTEM INFORMATION
    1. Process Environment Information
    2. Local Time and System Time
    3. Locale and Language Support
    4. System Information Function Descriptions
  27. STRING MANIPULATION AND CHARACTER SETS
    1. Windows Character Set Translations
    2. Locales
    3. String Manipulation and Character Set Function Descriptions
  28. ATOMS
    1. Working with Atom Tables
    2. Using Global Atoms for Data Exchange
    3. Integer Atoms
    4. Atom Function Descriptions
  29. TIMERS
    1. Using Timers
    2. Windows Time
    3. Performance Monitor Counters
    4. Timer Function Descriptions
  30. PROCESSES, THREADS, AND FIBERS
    1. Creating Processes and Threads
    2. Fibers
    3. Synchronization Objects
    4. Protecting Nonreentrant Code of a Process
    5. Process, Thread, and Fiber Function Descriptions
  31. ERROR AND EXCEPTION PROCESSING
    1. Writing Exception Handlers and Filters
    2. Win32 API for Exception Handling
    3. Error and Exception Processing Function Descriptions
  32. MULTIPLE-DOCUMENT INTERFACE (MDI)
    1. Creating an MDI Application
    2. The MDI Frame Window
    3. The MDI Child Window
    4. Menus in MDI Applications
    5. MDI Function and Message Descriptions
  33. INTERFACING WITH HELP FILES
    1. Providing User Access to the Help File
    2. Providing Context-Sensitive Help
    3. Using Training Card Help
    4. Help Files Function and Message Descriptions
  34. FILE DECOMPRESSION AND INSTALLATION
    1. File Installation Overview
    2. Installing the Proper Version
    3. The Version Resource
    4. File Decompression
    5. File Decompression and Installation Function Descriptions
  35. DYNAMIC LINK LIBRARIES
    1. Loadtime Dynamic Linking
    2. Runtime Dynamic Linking
    3. Creating Dynamic Link Libraries
    4. Accessing Data Within a DLL
    5. Using the DLL Notification Entry Point
    6. Dynamic Link Libraries Function Descriptions
  36. Index