COM Library
Classes | Namespaces | Defines
ServerRegInfo.hpp File Reference

The ServerRegInfo class declaration. More...

Classes

class  COM::ServerRegInfo
 The data class used to store the library registry details. More...
struct  COM::ClassRegInfo
 The data class used to store the coclass registry details. More...

Namespaces

namespace  COM
 

The COM Library namespace.


Defines

#define DEFINE_REGISTRATION_TABLE(libname, libuuid, major, minor)
#define DEFINE_CLASS_REG_INFO(clsid, name, version, model)   { &clsid, name, version, model },
#define END_REGISTRATION_TABLE()

Detailed Description

The ServerRegInfo class declaration.

Author:
Chris Oldwood

Define Documentation

#define DEFINE_REGISTRATION_TABLE (   libname,
  libuuid,
  major,
  minor 
)
Value:
virtual void GetServerRegInfo(COM::ServerRegInfo& oInfo) const      \
        {                                                                   \
            oInfo.m_strLibrary = libname;                                   \
            oInfo.m_oLIBID     = libuuid;                                   \
            oInfo.m_nMajor     = major;                                     \
            oInfo.m_nMinor     = minor;                                     \
        }                                                                   \
        virtual const COM::ClassRegInfo* GetClassRegInfo() const            \
        {                                                                   \
            static COM::ClassRegInfo aoClasses[] =                          \
            {
#define DEFINE_CLASS_REG_INFO (   clsid,
  name,
  version,
  model 
)    { &clsid, name, version, model },
Value:
{ NULL, NULL, NULL, static_cast<COM::ThreadingModel>(0) }   \
            };                                                              \
            return aoClasses;                                               \
        }