Registering a COM+ Server

That's a lot of registry subkeys and values that I've tried to explain in this chapter. I'll let you finish watching The Simpsons before I tell you the bad news that it is your COM+ server's responsibility to register a lot of these settings. The next few sections describe where your registration code should be located.

Regsvr32

The DllUnregisterServer and DllRegister functions are exported from the DLL.

The Regsvr32 application performs the following three tasks to register or unregister an in-process server:

  • Calls LoadLibrary to load the module

  • Calls GetProcAddress to retrieve a function pointer for DllRegister or DllUnregister

  • Calls the DllRegister or DllUnregister function

  • Calls FreeLibrary

DLLRegisterServer and DLLUnregisterServer ...

Get COM+ Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.