This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

84
proto/source/DLLSERVE.HPP Normal file
View 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