GME  13
Public Member Functions | Public Attributes
CrThreadAutoInstallHelper Class Reference

Installs (uninstalls) exception handlers for the caller thread in class' constructor (destructor). More...

#include <CrashRpt.h>

List of all members.

Public Member Functions

 CrThreadAutoInstallHelper (DWORD dwFlags=0)
 Installs exception handlers to the caller thread.
 ~CrThreadAutoInstallHelper ()
 Uninstalls exception handlers from the caller thread.

Public Attributes

int m_nInstallStatus
 Install status.

Detailed Description

Installs (uninstalls) exception handlers for the caller thread in class' constructor (destructor).

Remarks:

This wrapper class calls crInstallToCurrentThread2() in its constructor and calls crUninstallFromCurrentThread() in its destructor.

Use CrThreadAutoInstallHelper::m_nInstallStatus member to check the return status of crInstallToCurrentThread2().

Example:

   DWORD WINAPI ThreadProc(LPVOID lpParam)
   {
     CrThreadAutoInstallHelper cr_thread_install_helper();
     assert(cr_thread_install_helper.m_nInstallStatus==0);
    
     // Your code follows here ...
   }

Definition at line 1597 of file CrashRpt.h.


Constructor & Destructor Documentation

Installs exception handlers to the caller thread.

Definition at line 1602 of file CrashRpt.h.

Uninstalls exception handlers from the caller thread.

Definition at line 1608 of file CrashRpt.h.


Member Data Documentation

Install status.

Definition at line 1614 of file CrashRpt.h.


The documentation for this class was generated from the following file: