Audacity 3.2.0
Functions
anonymous_namespace{FileDialogPrivate.cpp} Namespace Reference

Functions

void ChangeExceptionPolicy ()
 
void RestoreExceptionPolicy ()
 

Function Documentation

◆ ChangeExceptionPolicy()

void anonymous_namespace{FileDialogPrivate.cpp}::ChangeExceptionPolicy ( )

Definition at line 112 of file win/FileDialogPrivate.cpp.

113{
114#if wxUSE_DYNLIB_CLASS
115 gs_changedPolicy = false;
116
117 wxLoadedDLL dllKernel32(wxT("kernel32.dll"));
118
119 if ( gs_pfnGetProcessUserModeExceptionPolicy
120 == (GetProcessUserModeExceptionPolicy_t) -1)
121 {
122 wxDL_INIT_FUNC(gs_pfn, GetProcessUserModeExceptionPolicy, dllKernel32);
123 wxDL_INIT_FUNC(gs_pfn, SetProcessUserModeExceptionPolicy, dllKernel32);
124 }
125
126 if ( !gs_pfnGetProcessUserModeExceptionPolicy
127 || !gs_pfnSetProcessUserModeExceptionPolicy
128 || !gs_pfnGetProcessUserModeExceptionPolicy(&gs_oldExceptionPolicyFlags) )
129 {
130 return;
131 }
132
133 if ( gs_pfnSetProcessUserModeExceptionPolicy(gs_oldExceptionPolicyFlags
134 | 0x1 /* PROCESS_CALLBACK_FILTER_ENABLED */ ) )
135 {
136 gs_changedPolicy = true;
137 }
138
139#endif // wxUSE_DYNLIB_CLASS
140}
wxT("CloseDown"))

References wxT().

Here is the call graph for this function:

◆ RestoreExceptionPolicy()

void anonymous_namespace{FileDialogPrivate.cpp}::RestoreExceptionPolicy ( )

Definition at line 142 of file win/FileDialogPrivate.cpp.

143{
144#if wxUSE_DYNLIB_CLASS
145 if (gs_changedPolicy)
146 {
147 gs_changedPolicy = false;
148 (void) gs_pfnSetProcessUserModeExceptionPolicy(gs_oldExceptionPolicyFlags);
149 }
150#endif // wxUSE_DYNLIB_CLASS
151}