windows-nt/Source/XPSP1/NT/net/upnp/host/inc/uhthread.h

36 lines
754 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 2000.
//
// File: U H T H R E A D . H
//
// Contents: Threading support code
//
// Notes:
//
// Author: mbend 29 Sep 2000
//
//----------------------------------------------------------------------------
#pragma once
class CWorkItem
{
public:
CWorkItem();
virtual ~CWorkItem();
HRESULT HrStart(BOOL bDeleteOnComplete);
protected:
virtual DWORD DwRun() = 0;
virtual ULONG GetFlags();
private:
CWorkItem(const CWorkItem &);
CWorkItem & operator=(const CWorkItem &);
BOOL m_bDeleteOnComplete;
static DWORD WINAPI DwThreadProc(void * pvParam);
};