Programming Guide |
Determines if the client calling the component is allowed access
int sm_mts_IsCallerInRole(char *role);
role
- Name of the user accessing the COM component.
MTS
Server
- ·
PV_YES
if the caller is in the role
sm_mts_IsCallerInRole
queries 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.