Determines if the client calling the component is allowed accessint sm_mts_IsCallerInRole(char *role);
- Name of the user accessing the COM component.
sm_mts_IsCallerInRolequeries whether the current user is in the component package's specified role.
For more details see the IsCallerInRole method under IObjectContextMethods in the MTS documentation.
Note that this function requires an object context and therefore cannot be used in the constructor of a service component.