/GH (Enable _pexit Hook Function)
_pexit function at the end of every method or function.
_pexit function is not part of any library and it is up to you to provide a definition for
Unless you plan to explicitly call
_pexit, you do not need to provide a prototype. The function must appear as if it had the following prototype, and it must push the content of all registers on entry and pop the unchanged content on exit:
void __declspec(naked) __cdecl _pexit( void );
_pexit is similar to
_penter; see /Gh (Enable _penter Hook Function) for an example of how to write a
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Click the C/C++ folder.
Click the Command Line property page.
Type the compiler option in the Additional Options box.
To set this compiler option programmatically
- See AdditionalOptions.