Introduction to Windows API programing e-book
The e-book has 244 pages. It has 114 code examples. The e-book is an introductory material on programming in Windows API with the C programming language. It is an ideal material for those who would like to start learning about programming with Windows API. We assume that the reader knows the basics of the C language. The e-book is the most recent book written about Windows API available.
Carefully chosen examples always focus on one important aspect. Buying this e-book you will save a lot of hours searching on the Internet, asking on forums and figuring things on your own. What took the author months and weeks to find out, you will get in days and hours. The e-book is written in plain English.
The code examples were tested with the Pelles C compiler. After purchasing the e-book, you will be redirected to a page where you can download a ZIP file. With the PDF file, you will also obtain all code examples.
If something goes wrong with the payment process, drop me an email at vronskij(at)gmail.com.
Price
The e-book costs 19 €.
Other payment options
EU citizens can purchase the e-book via wire transfer without additional fees. If you would like to use this payment option, contact me at vronskij(at)gmail.com and I will send you the details.
About this E-book
This is Introduction to Windows API programing e-book. This e-book is an introductory material on programming in Windows API with the C programming language. It is based on ZetCode's Windows API tutorial with additional material.
The e-book has 14 chapters. The complete table of contents is listed at the end of the page.
The following is covered:
- Introduction
- Essentials
- Main functions
- System functions
- Strings
- Locale
- Date and time
- Files and directories
- Window
- First steps in UI
- Menus
- Controls
- List box
- Graphics
The Introduction chapter introduces Windows API and the Pelles C IDE. The Essentials chapter covers functions in a generic way, mentions windows data types, handles, and macros. The Main functions chapter talks about the available main functions. We mention both console and UI main functions. The System functions chapter describes several system-related functions. For instance, we show how to lock the workstation, get the computer name, or determine the CPU speed. The Strings chapter is dedicated to the all-important topic of strings in Windows API. We mention the classic ANSI C string functions, security enhanced string functions, and Windows API string functions.
In the Locale chapter we talk about functions related to the native-language environment. In this chapter, we show how to get locale information, format currency, numbers, or dates in the current locale, and compare strings. In the Date and time chapter we work with date and time. We determine the local and universal time, do arithmetic operations with dates, or format date and time. In the Files and directories chapter we work with files and directories. We create and remove directories, copy and delete files, or read and write to a file. In the Window chapter we describe how to create our first window in a detail.
In the First steps in UI chapter we create simple UI programs. For instance, we create a centered window, register a hot key, or flash a window. The Menus chapter is dedicated to menus. We create both classic menus and popup menus. In the Controls chapter we describe fourteen controls, including button, check box, trackbar, status bar, and combo box. The List box chapter describes the List box control; it has six examples describing it. In the Graphics chapter we perform drawing. We draw basic primitives, shapes, text or work with regions and clipping.
Screenshots
Here are some screenshots from the e-book.
Table of Contents
- Preface
- About the author
- Introduction
- Windows API
- Pelles C
- MSDN
- Essentials
- Functions
- Windows data types
- Handles
- Macros
- Main functions
- The main prototypes
- The wmain prototypes
- The _tmain prototypes
- The WinMain prototypes
- System functions
- Screen size
- Locking workstation
- Computer name
- User name
- Current directory
- Windows version
- Memory usage
- Known Folders
- Drive names
- Free disk space
- CPU speed
- Strings
- ANSI C string functions
- Security enhanced CRT functions
- Windows API kernel and user string functions
- Windows API Shell Lightweight Utility functions
- Windows API StrSafe functions
- Locale
- Default locale
- Getting locale information
- Currency format
- Number format
- Date format
- Comparing strings
- Date and time
- Local time
- UTC time
- Arithmetic
- Date
- Formatting date
- Determining a leap year
- Uptime
- Day of week
- Epoch
- Days until XMas
- Comparing times
- Time zones
- Files and directories
- Creating a directory
- Removing a directory
- Copying a file
- Deleting a file
- Moving a file
- File size
- Last write time
- File attributes
- Reading a file
- Writing to a file
- Window
- wWinMain() function
- Registering a window class
- Creating a window
- Messages
- Window procedure
- Simple window
- First steps in UI
- Message box
- Centering a window
- Hot key
- More windows
- Escape key
- Moving a window
- Flashing a window
- Menus
- Simple menu
- Popup menu
- Check menu item
- Radio menu item
- Submenu
- Controls
- Static control
- Button
- Check box
- Edit control
- Radio buttons and group box
- Combo box
- Status bar
- Progressbar
- Trackbar
- Updown control
- Month calendar control
- IP address control
- Hot key control
- Tab control
- List box
- Simple example
- Double click
- Adding and deleting items
- Selections
- Multiple selections
- Finding items
- Graphics
- Pixel
- Line
- Rectangle
- Bézier curve
- Pen
- Brush
- Star
- Shapes
- Text
- Drawig a bitmap
- Viewport origin
- Region
- Clipping
- Bibliography