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

📄 event.h

📁 奇迹世界公用文件源代码,研究网络游戏的朋友可以研究下
💻 H
字号:


#ifndef __EVENT_H__
#define __EVENT_H__

#pragma once

#include <windows.h>
#include "tstring.h"

namespace util{

class CEvent{ // 捞亥飘 包访 扁瓷阑 力傍窍绰 努贰胶
private:
	HANDLE m_hEvent; // 捞亥飘 按眉

public:
	CEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState);
	CEvent(LPSECURITY_ATTRIBUTES lpSecurityAttributes, BOOL manualReset, BOOL initialState, const _tstring& name);
	CEvent(const CEvent& rhs);
    CEvent& operator=(const CEvent& rhs);
	virtual ~CEvent(void);
	
    HANDLE GetEvent() const;
	void Wait() const;
    BOOL Wait(DWORD timeoutMillis) const;
    void Reset();
    void Set();
    void Pulse();
};

}//End of namespace : util

#endif

⌨️ 快捷键说明

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