IDL_RPCSetMainVariable

Calling Sequence

int IDL_RPCSetMainVariable( CLIENT *pClient,  char *Name, 
    IDL_VPTR pVar) 

Description

Use this routine to assign a value to a main level IDL variable in the IDL RPC server session referred to by pClient. If the variable does not already exist, a new variable will be created.

Parameters

pClient

A pointer to the CLIENT structure that corresponds to the desired IDL session.

Name

A pointer to the null-terminated name of the variable, which must be in upper-case.

pVar

A pointer to an IDL_VARIABLE structure that contains the value that the IDL RPC main level variable referenced by Name should be set to. For more information on creating this variable, see Client Variables.

Return Value

This function returns 1 on success, or 0 on failure.