Exceptions

Alexandre Julliard julliard at winehq.org
Wed Aug 27 15:04:12 CDT 2003


"flyker" <flyker at everys.com> writes:

> using Winelib i can write
>
>  __TRY {
>      ...
>  }
>  __EXCEPT( ??? )
>  {
>     ...
>  }
>
> what can i use how EXCEPTION_EXECUTE_HANDLER ?

In general you need to create a function that returns a filter value
(EXCEPTION_EXECUTE_HANDLER or EXCEPTION_CONTINUE_SEARCH), and pass
that function name in __EXCEPT(). There are many examples of that in
the Wine source. As a simplification, if you want to execute the
handler in all cases (i.e. your filter function always returns
EXCEPTION_EXECUTE_HANDLER) then you can use NULL instead of a function
name.

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list