How to determine if a driver is on WinPE or WinXP

Is there a function/interface by which a miniport driver can detect if
it is running under Win XP or Win PE. I plan to have a single driver for
both but need to know this to do some special handling under Win PE.

sincerely,
Vedvyas Shanbhogue

PE has a key named [HKLM\system\currentcontrolset\control\minint]

----- Original Message -----
From: “Shanbhogue, Vedvyas”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, March 22, 2006 11:10 PM
Subject: [ntdev] How to determine if a driver is on WinPE or WinXP

Is there a function/interface by which a miniport driver can detect if
it is running under Win XP or Win PE. I plan to have a single driver for
both but need to know this to do some special handling under Win PE.

sincerely,
Vedvyas Shanbhogue


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