⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sunnythread.h

📁 无线数据服务中心源代码:移动或联通的无限数据终端将采集到的数据通过Internet传送到数据中心
💻 H
字号:
// SunnyThread.h: interface for the CSunnyThread class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SUNNYTHREAD_H__1828EC42_7F38_4298_B94B_12C92AB28542__INCLUDED_)
#define AFX_SUNNYTHREAD_H__1828EC42_7F38_4298_B94B_12C92AB28542__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CSunnyThread  
{
public:
	CSunnyThread(BOOL bAutoDelete = FALSE);
	virtual ~CSunnyThread();

	typedef DWORD (WINAPI *THREADFUNC)(LPVOID lpParameter);
	BOOL Create(THREADFUNC pThreadFunc = NULL, void* pParam = NULL, BOOL bSuspended = FALSE); 
	BOOL WaitForEnd(DWORD dwTiomeout = INFINITE);
	void Resume() const;
	void Suspend() const;
	BOOL SetPriority(int nPriority) const;
	BOOL PostMessage(const UINT msg, const WPARAM wParam = 0, const LPARAM lParam = 0) const;

private:
	THREADFUNC m_pThreadFunc;
	BOOL m_bAutoDelete;
	int m_nRetValue;
	void* m_pParam;
	HANDLE m_hThread;
	DWORD m_dwThreadID;
};

#endif // !defined(AFX_SUNNYTHREAD_H__1828EC42_7F38_4298_B94B_12C92AB28542__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -