Files
Work/proto/source/DLLSERVE.HPP
2024-08-07 09:16:27 -04:00

84 lines
1.1 KiB
C++

#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