Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

.SAFESEH

Registers a function as a structured exception handler.

.SAFESEH identifier

identifier must be the ID for a locally defined PROC or EXTRN PROC. A LABEL is not allowed. The .SAFESEH directive requires the /safeseh ml.exe command-line option.

For more information about structured exception handlers, see /SAFESEH.

For example, to register a safe exception handler, create a new MASM file (as follows), assemble with /safeseh, and add it to the linked objects.

.386
.model  flat
MyHandler   proto
.safeseh    MyHandler
end
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.