Sm_AgentApi_ResourceContext_t

This structure defines a resource for protection and authorization.
sm1252sp1
This structure defines a resource for protection and authorization.
Syntax
This structure has the following format:
typedef struct Sm_AgentApi_ResourceContext_s
{
   char lpszAgent[SM_AGENTAPI_SIZE_NAME];
   char lpszServer[SM_AGENTAPI_SIZE_NAME];
   char lpszAction[SM_AGENTAPI_SIZE_NAME];
   char lpszResource[SM_AGENTAPI_SIZE_URL];
} Sm_AgentApi_ResourceContext_t;
Parameters
This structure has the following parameters:
  • lpszAgent
    Name of the Affiliate Agent holding the resource. This flag is reserved for working with Affiliate Agents. Leave this field blank.
  • lpszServer
    Optional field, used to specify the name of the Web server hosting the Web resource—for example, www.myorg.org.
  • lpszResoure
    Name of the Web resource being requested—for example, /inventory/ .
  • lpszAction
    Type of action to be performed on the resource—for example, GET.