The information in this article applies to:
SUMMARYThere is no documented way to get operating system version information from a kernel-mode device driver. There is an API in NTDDK.h called PsGetVersion that returns the Major version, Minor version, Build number, and the CSD (Corrected Service Diskette, Service Pack) number. MORE INFORMATIONSample CodeThe following code is from NTDDK.h:
Typical code for a kernel-mode device driver might be as follows:
All of the parameters are optional. If a parameter is not required by a device driver, replace it with NULL as follows:
NOTE: The PsGetVersion API information is included in the Windows NT 5.0 DDK.
Keywords : kbcode kbDDK kbKMode kbNTOS400 |
Last Reviewed: March 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |