Instructor-led training
NT Programming for C Programmers Training in Morrisville, North Carolina
This course takes a comprehensive look at Win32, the native user mode NT programming interface.
What you'll learn
The course covers the most powerful and critical features of Windows NT including the Registry, Processes, Threads, Synchronization, Security, Asynchronous I/O, and many others. Developers will also be exposed to the general principles of programming the Win32 interfaces as well as practical tips on how NT works. The course wraps up with a perspective of Windows NT in the industry today and tomorrow and a look at evolving Windows NT technologies.
The course includes hands-on programming examples and labs. Students will complete several labs in class, each exercising a specific Win32 programming technique.
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Morrisville, North Carolina or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
NT Overview
Design Goals
NT Architecture
Object Architecture
Application Models
Object and Security
NT Kernel Objects
Object Namespace
Object Inheritance
Object Structure
NT Object Security
Security Descriptors
NT Security Model
Object Handles
Structured Exception Handling
Exceptions Defined
Exception Handler Syntax
Exception Filters
Exception Sequencing
Structured Termination
Structured Termination Sequencing
Related Win32 Routines
Unicode
The Unicode Standard
ANSI C Support
CRT Support
Win32 Support
Programming in Unicode
Programming with Generic Character
Unicode Windows
Windows Messages and Unicode
The NT Registry
Intent and Use of the Registry
Hives
Registry Editors
Registry API
Processes
NT Process Definition
Creating a Process
Process Startup
Process Termination
Inter Process Communications
Process Synchronization
Inheritance
Threads
NT Thread Definition
Thread Scheduling
Creating a Thread
Thread Startup
Thread Termination
Thread Communications
Thread Synchronization
C Run Time Libraries
Synchronization
Object Model of Synchronization
Synchronization Objects
Waiting for Objects
Event
Semaphore
Mutex
Critical Section
Asynchronous I/O
NT I/O Architecture
CRT, Win16 & Win32
Overlapped I/O
Waiting for I/O Completion
I/O Callback Functions
Memory Management
Process Address Space Anatomy
NT Virtual Memory Manager Architecture
Memory Paging
Memory APIs
Memory Reservation
Memory Commitment
Virtual Memory API
Heap Memory API
CRT, C++ & Win16 APIs
Memory Mapped Files
Dynamic Link Libraries
DLL Architecture
Instance Data
DLL Entry Point
Exports and Imports
Process and Thread Termination
Thread Local Storage
DLL Shared Memory
Appendix. Introduction for Win32 for C++ Programmers
Win32 Programming Model
Win32 Programming Using SDK
Multiple Instances of Win32 Applications
Win32 Versions
Version Resources
Win32 Error Reporting
Basic Win32 Memory Management
What makes Win32 systems programming hard to master
Most Win32 difficulty comes from a handful of ideas that recur in every area, not from the volume of API calls. The syllabus starts with the NT architecture, the object architecture and kernel objects, and the rest of the course builds on them.
- Everything is an object behind a handle. Object namespace, inheritance, object structure and handles are covered before processes or threads. A process handle, an event and a file are managed by the same rules for lifetime, inheritance and access control. Developers who treat handles as plain integers tend to leak them or inherit them by accident.
- Security is part of object creation. The NT security model and security descriptors apply to kernel objects, so access decisions show up in ordinary calls.
- Concurrency has several mechanisms that look alike. Events, semaphores, mutexes and critical sections all appear under synchronization. They differ in scope (within one process or across processes), ownership and how waiting works. A common misconception is that they are interchangeable. The course covers the object model of synchronization and waiting for objects, then each primitive, after processes and threads are in place.
- Asynchronous I/O changes control flow. Overlapped I/O, waiting for completion and I/O callback functions require you to track what is outstanding and who owns each buffer.
- Memory has layers. Reserving versus committing memory, the virtual memory and heap APIs, the CRT and C++ allocation routines, and memory mapped files are separate tools with separate trade-offs.
- Failure paths need their own design. Structured exception handling covers filters, exception sequencing and structured termination. It is distinct from checking return codes, and it is easy to misuse.
DLLs come last because they combine earlier topics: entry points, instance data, thread local storage, shared memory, and what happens at process and thread termination.
Who it suits and where it fits
The course is five days and aimed at programmers who already write Windows code in C or in C++ with a class library such as MFC. It is for developers building or maintaining applications that need processes, threads, security, asynchronous I/O or DLLs directly, and for systems-level work. The syllabus includes an appendix on the Win32 programming model for C++ programmers, which helps if your background is class-library based.
If your Windows experience is thin, Introduction to Windows Programming and MFC is a sensible earlier step, because this course assumes you already know the message-driven programming model. For C++ language fundamentals, C++ Programming for C Programmers covers that ground separately.
Afterward, MFC Windows Programming for C++ Programmers is a natural step for teams that want to apply this low-level knowledge inside a class-library application. The full list is in the C++ Programming courses and learning guide.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- A long-running background service. A team maintaining an existing Windows service might use overlapped I/O with completion callbacks to serve many requests without a thread per request. Events and critical sections would protect the shared queue. This draws on the Asynchronous I/O, Threads and Synchronization modules.
- A multi-process application with controlled access. A team might launch worker processes that inherit selected handles, coordinate through a named mutex or semaphore, and restrict access to shared objects with security descriptors. Object inheritance, process creation and inter-process communication, and NT object security are the relevant topics.
- A shared component packaged as a DLL. A group might ship a library that keeps per-thread state in thread local storage, shares a data region across processes, and cleans up correctly at process and thread termination. For configuration it might use the Registry API. The DLL, Registry and Unicode modules cover these topics.
AI coding assistants and Win32 code
AI coding assistants are useful for explaining an unfamiliar API call, summarizing what a legacy routine does, drafting wrapper functions around handles, and producing first-pass tests. They are weaker where correctness depends on lifetime and timing, which describes much of this syllabus.
- Handles and cleanup. Generated code often misses a close on an error path or ignores structured termination.
- Synchronization. Plausible code may choose the wrong primitive, such as a critical section where cross-process sharing needs a mutex, or may wait in a way that can deadlock.
- Overlapped I/O. Buffer and structure lifetimes while an operation is outstanding are easy to get wrong, and the code may still pass a quick test.
- Security and memory. Permissive descriptors, mixed allocator and free routines, and confusion between reserved and committed memory are common errors.
- Unicode. Mixing narrow and wide character types can compile yet behave wrongly.
To verify, check every return value against Win32 error reporting, review each code path for handle and memory ownership, and run stress tests with many threads and varied timing. Compiler warnings and static analysis help but do not replace a design review of the concurrency. Developers who understand the underlying model can judge generated code. Others have difficulty telling that a suggestion is wrong.
Frequently asked questions
What level is this course?
The description calls it advanced, aimed at programmers building sophisticated applications and doing systems programming. HSG lists it at the general level.
What do I need to know beforehand?
Experience with Windows programming, either in C using the SDK or in C++ with a class library such as MFC. The appendix introduces the Win32 programming model for C++ programmers, but it is a supplement, not a replacement for that experience.
What does the course cover?
NT architecture and kernel objects, object security, structured exception handling, Unicode, the Registry, processes, threads, synchronization (events, semaphores, mutexes, critical sections), asynchronous I/O, memory management and memory mapped files, and DLLs. It includes hands-on labs.
Can this be delivered privately for our team, onsite or online?
Yes. HSG delivers private training for organizations either onsite at the client's location or live online.
Can the content be customized?
Private courses can be tailored, including to the technology versions your organization uses. To discuss your needs, request a training proposal.Training locations
NT Programming for C Programmers training across the U.S. and beyond.
We provide private NT Programming for C Programmers training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all NT Programming for C Programmers training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.