Like I said the first time, you don’t really operate with the mindset that it is a list of exceptions. Rather, specific APIs will document they use SEH to return an error and you use SEH around those API calls. For instance, MmProbeAndLockPages, http://msdn.microsoft.com/en-us/library/windows/hardware/ff554664(v=vs.85).aspx, says this
Calls to MmProbeAndLockPages must be enclosed in a try/except block. If the pages do not support the specified operation, the routine raises the STATUS_ACCESS_VIOLATION or other exceptions. For more information, see Handling Exceptions.
See the Handling Exceptions page, http://msdn.microsoft.com/en-us/library/windows/hardware/ff546823(v=vs.85).aspx, for a partial list of APIs (MmMapLockedPages, MmProbeAndLockPages, ProbeForRead, ProbeForWrite)
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, July 18, 2012 7:46 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] What are the criterias for using SEH in a kernel mode code?
Thanks Doron Holan.
I am not trying to solve a particular problem. I am just trying to be sure which exceptions in kernel mode is allowed to handled by SEH Handler. I know that some exceptions than can’t be handled by kernel-mode code even if write an exception handler for that.
There is a list in here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms679356(v=vs.85).aspx
But it is for user-mode I think.
Which ones of these exception types are allowed to handle by SEH in kernel-mode? I am just trying to learn that.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer