Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category, below.

Re: [BULK] Re: Modern C++ Features in Kernel Mode Drivers

Prokash_SinhaProkash_Sinha Posts: 1,214
Thanks much for the input :-)

I will have to read the Guide, since it does mention deterministic exception handling, with static type or something.

Yeah, I recall SEH also forbidden anything below Top level.

Now for the Printer stuff, does it uses a derivative of CUPS/IPP ??

-Pro

> On Jul 9, 2018, at 10:49 AM, xxxxx@probo.com <xxxxx@lists.osr.com> wrote:
>
> xxxxx@garlic.com wrote:
>> 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 not !
>
> 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
> slowly away.
>
> --
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> ---
> NTDEV is sponsored by OSR
>
> Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev>;
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
> Details at <http://www.osr.com/seminars>;
>
> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer>;
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!