Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

50 lines
1.1 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 19/04/2000
// Last modification: 08/10/2003
// Project Intruder Position Indicator
// SUBSYSTEM: Fence
// FILE: Fence.h
// AUTHOR: Chizhevskiy Sergey
// OVERVIEW
// ~~~~~~~~
// Header file of class CFence
//----------------------------------------------------------------------------
#ifndef __FENCE__H__INCLUDED__
#define __FENCE__H__INCLUDED__
class CApplication;
class CFence {
public:
CFence();
~CFence();
public:
BOOL Create(CApplication *pApplication, LPCTSTR pCommPort);
void Enable(BOOL fEnable);
private:
friend DWORD CALLBACK ThreadProcFence(LPVOID lpvParam);
// { return ((CFence*)lpvParam)->ThreadProc(); }
DWORD ThreadProc();
CApplication* m_pApplication;
private:
HANDLE m_hCommPort;
HANDLE m_hThread;
HANDLE m_hEventClose;
BOOL m_bEnable;
};
inline
void CFence::Enable(BOOL fEnable)
{
m_bEnable = fEnable;
}
#endif