Well, I have some generic code that is run when two different hooks are
tiggered. The thing is that in the generic code there is a small
routine I want to run only if one of the hooks are triggered and I dont
want to sperate this small routine into its own module.
So, the code/function to capture the hooktype would be in the generic
No, there's no way to get the hooktype of the caller, or at least I wasn't
able to find one when I was looking for it. Just create small wrapper
classes with the Process() function then implement your common code in a
separate class or code module and call it from each of the wrappers.