Programming Guide



sm_mts_IsCallerInRole

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.

Environment

MTS

Scope

Server

Returns

Description

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.

See Also

sm_mts_IsSecurityEnabled