
macro DECLARE_REGISTRY_RESOURCEID and passing the identifier of the
Registry script as an argument.
The DECLARE_REGISTRY_RESOURCEID macro expands to a static function
that looks like this:
#define DECLARE_REGISTRY_RESOURCEID(x)\
static HRESULT WINAPI UpdateRegistry(BOOL bRegister) throw()\
{ }; // Code omitted
The UpdateRegistry function essentially builds an array of token/value pairs that are
used by the ATL registrar to expand preprocessor macros, such as %MODULE%. Should
you wish to pass a custom value, all that would be needed is to rewrite the UpdateRegistry
to your custom requirements.The primary purpose of the UpdateRegistry function is to
pass this ...