C++ api extension manager add-in question (for thomas gumz)

thomas you wrote this when replying to a quey from someone else .

  • Your extension manager code will get called/initialized for EVERY server task loading (main server, router, agent manager, etc.), so if you want it only for the “main server”, check if the calling process is “server.exe”; otherwise get out.

i’m using the c api in c++

this would probably explain why i can see my code being initiazed multiple times on the server console and could never figure out why - i started with the extension manager sample c program and modified that

can anyone explain how i check the calling process to limit the initilization in c++?

and should i be limiting this to server.exe or router.exe (as it only deals with EM_NSFNOTEUPDATEMAILBOX)

source code can be found here if you need more info

thanks

Subject: c++ api extension manager add-in question (for thomas gumz)

You don’t have to check the calling process, it’s just one way of doing it (and probably confusing). All you need to do is initialize your code only once (check a static member variable or so), and if already initialized, exit. If you look at the API sample code, they use a simple counter… There is no real association or affinity between the calling code and your code, its just that the extension manager addin code gets called by every process starting up on the server.

Thomas - IBM