From: Kid on
Hi

I see try catch structured exception handling (SEH) in WinCE driver, can
Windows driver use SEH ?

Can SEH use in user mode application and kernel mode driver ?

Thank you.
From: Maxim S. Shatskih on
Yes it can, on < DISPATCH_LEVEL only.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim(a)storagecraft.com
http://www.storagecraft.com

"Kid" <Kid(a)discussions.microsoft.com> wrote in message
news:EC393C0E-6236-4B4F-8C65-7D29084750BF(a)microsoft.com...
> Hi
>
> I see try catch structured exception handling (SEH) in WinCE driver, can
> Windows driver use SEH ?
>
> Can SEH use in user mode application and kernel mode driver ?
>
> Thank you.

From: Doron Holan [MSFT] on
to further clarify, the use of SEH in a driver should be very limited. if
you wrapping all pointer accesses in an SEH block assuming it will throw an
exception on an invalid address, this is will not work. typically you only
use SEH around API calls which say they will throw an exception (like
MmProbeAndLockPages)

where/how are you using the SEH blocks?

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Maxim S. Shatskih" <maxim(a)storagecraft.com> wrote in message
news:uQMxB9zuIHA.5520(a)TK2MSFTNGP06.phx.gbl...
> Yes it can, on < DISPATCH_LEVEL only.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim(a)storagecraft.com
> http://www.storagecraft.com
>
> "Kid" <Kid(a)discussions.microsoft.com> wrote in message
> news:EC393C0E-6236-4B4F-8C65-7D29084750BF(a)microsoft.com...
>> Hi
>>
>> I see try catch structured exception handling (SEH) in WinCE driver, can
>> Windows driver use SEH ?
>>
>> Can SEH use in user mode application and kernel mode driver ?
>>
>> Thank you.
>