16,749
社区成员
发帖
与我相关
我的任务
分享
///标准接口
struct IKnown
{
///接口
virtual unsigned long __stdcall Release()=0;
};
///服务接口
struct IService : IKnown
{
///返回版本号
virtual int __stdcall Get(const void * lpBuffer) = 0;
};
TStruct = record
function release(): longword;
end;
struct IKnown
{
virtual unsigned long __stdcall _QueryInterface(const int & iid, IKnown **ppv )=0;
virtual unsigned long __stdcall _AddRef()=0;
virtual unsigned long __stdcall _Release()=0;
};
struct IWorkService : IKnown
{
virtual IWorker * __stdcall GetWorker(int iVersion) = 0;
virtual void __stdcall FreeWorker(IWorker * lpWorker) = 0;
};
struct IWorker
{
virtual void __stdcall SetBuffer(void * pBuf,int iBufSize)=0;
virtual int __stdcall getVersion(void) = 0;
};
#ifdef __cplusplus
extern "C"
#endif
IKnown * __stdcall getWorkServiceInstance();
#ifdef __cplusplus
}
#endif