Message 2 of 2
09 Jul 18 13:49
Join Date: 28 Jan 2005
Posts To This List: 12008
Re: RE: RE: Re: [BULK] Re: Modern C++ Features in Kernel Mode Drivers
> No, Iâ€™m not. Last thing I remember was the GDI drivers ( on the graphics
side), and IIRC it has C++.
No, GDI drivers were all in C.Â That's how I got my start.Â Some of the
user-mode printer DLLs used C++.
> Where does it live in the stack ? Is it top level driver ?
Yes.Â AVStream and Port-class drivers are both miniports.Â Your web
camera and your sound card are both being driven by C++ code.
> If it can be executed in arbitrary context, can you use exception ? I guess
Of course not.Â You've never been able to use exceptions in the kernel,
and you still can't do so today.
I will say that, 10 or 15 years ago, I encountered a project that
originally came from one-time driver luminary Walter Oney.Â He had
created a library and a set of assembler glue code that DID enable the
use of C++ exceptions in the kernel.Â It was frightening.Â I backed
Tim Roberts, email@example.com
Providenza & Boekelheide, Inc.