| CWin32Thread:: Stop() |

Public Function | Declared in: Win32Thread.h

## Declaration

    virtual BOOL Stop();

## Description

Terminate the thread

## 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

Class Overview | CGenericThread | Hierarchy Chart

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.