Chapter 16. System Information

The system-information functions let you gather information about the system you are currently using. For example, you can examine the number of processors in use on a Windows 2000 machine and then use this information to dynamically decide on the number of threads to create in a multi-threaded application. The system information functions also include a pair function that allows you to initiate a system shutdown or to cancel that shutdown once it has begun.

Compatibility Note: All of the code in this chapter, up to section 16.4, works identically in Windows 2000 and Windows 98. The code in Section 16.4 will not work in Windows 98.

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.