Initial
This commit is contained in:
84
proto/source/DLLSERVE.HPP
Normal file
84
proto/source/DLLSERVE.HPP
Normal file
@@ -0,0 +1,84 @@
|
||||
#ifndef _PROTO_DLLSERVER_HPP_
|
||||
#define _PROTO_DLLSERVER_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
|
||||
class DLLServer
|
||||
{
|
||||
public:
|
||||
DLLServer(void);
|
||||
virtual ~DLLServer();
|
||||
void addLock(void);
|
||||
void removeLock(void);
|
||||
void addObject(void);
|
||||
void removeObject(void);
|
||||
void dllInst(HINSTANCE hDLLInst);
|
||||
HINSTANCE dllInst(void)const;
|
||||
LONG objects(void)const;
|
||||
LONG locks(void)const;
|
||||
private:
|
||||
HINSTANCE mhDLLInst;
|
||||
LONG mObjects;
|
||||
LONG mLocks;
|
||||
};
|
||||
|
||||
inline
|
||||
DLLServer::DLLServer(void)
|
||||
: mhDLLInst(0), mObjects(0), mLocks(0)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
DLLServer::~DLLServer()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
void DLLServer::addLock(void)
|
||||
{
|
||||
mLocks++;
|
||||
}
|
||||
|
||||
inline
|
||||
void DLLServer::removeLock(void)
|
||||
{
|
||||
mLocks--;
|
||||
}
|
||||
|
||||
inline
|
||||
void DLLServer::addObject(void)
|
||||
{
|
||||
mObjects++;
|
||||
}
|
||||
|
||||
inline
|
||||
void DLLServer::removeObject(void)
|
||||
{
|
||||
mObjects--;
|
||||
}
|
||||
|
||||
inline
|
||||
void DLLServer::dllInst(HINSTANCE hDLLInst)
|
||||
{
|
||||
mhDLLInst=hDLLInst;
|
||||
}
|
||||
|
||||
inline
|
||||
HINSTANCE DLLServer::dllInst(void)const
|
||||
{
|
||||
return mhDLLInst;
|
||||
}
|
||||
|
||||
inline
|
||||
LONG DLLServer::objects(void)const
|
||||
{
|
||||
return mObjects;
|
||||
}
|
||||
|
||||
inline
|
||||
LONG DLLServer::locks(void)const
|
||||
{
|
||||
return mLocks;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user