Class CWin32Thread::
Stop()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: StartNext page: Win32Thread    Show member index
Public Function Declared in:
Win32Thread.h

'Declaration' icon -- Shortcut to top of page. Declaration

virtual BOOL Stop();

'Description' icon -- Shortcut to top of page. Description

Terminate the thread

'Function Body' icon -- Shortcut to top of page. Function Body

//Only if suspened or running
if ((GetThreadStatus()==tsRunning ||
    GetThreadStatus()==tsSuspended) && m_hThread)
    if (CloseHandle(m_hThread))
    {
        //Stopped
        SetThreadStatus(tsStopped);
        return TRUE;
    }
    else
        return FALSE;
else
    return FALSE;

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CGenericThread  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001.