Declaration of RtlGetVersion() in WDM

All,

Anyone can advise why RtlGetVersion() was only declared in ntddk.h, but
not wdm.h. And for a strict WDM driver, what’s the best way to get
version information. Thx.

Best Regards

Raymond

It is in ntddk.h because wdm.h used to represent the APIs that were found on both win9x and NT. RtlGetVersion is only available on XP and later. If you have to support windows 2000, you have to use PsGetVersion() for that OS. What KMDF does is get the address of RtlGetVersion through MmGetSystemRoutineAddress and if it returns a pointer, call that, otherwise call PsGetVersion.

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Zhang, Raymond
Sent: Thursday, March 09, 2006 10:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Declaration of RtlGetVersion() in WDM

All,
?
Anyone can advise why RtlGetVersion() was only declared in ntddk.h, but not wdm.h. And for a strict WDM driver, what’s the best way to get version information. Thx.
?
Best Regards
Raymond


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer