This function allows setting individual RPC values (including parameters).
void srv_setRPC(
SRV_PROC * srvproc,
int iItem,
ULONG ulValue,
Void * pValue );
This function is used to set individual RPC item values when RPC processing is in progress.
iItem |
Applicable parameters | Description |
---|---|---|
SRV_RPC_ACTIVEFLAG | ulValue | Sets the RPC active flag to ulValue. This flag indicates that an RPC is active. |
SRV_RPC_SERVER | ulValue pValue | Sets the RPC server name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue. |
SRV_RPC_DATABASE | ulValue pValue | Sets the RPC database name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue. |
SRV_RPC_OWNER | ulValue pValue | Sets the RPC owner name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue. |
SRV_RPC_OWNER | ulValue pValue | Sets the RPC owner name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue. |
SRV_RPC_OWNER | ulValue pValue | Sets the RPC owner name value. The name is stored at the location pointed to by pValue. The length of the name is stored in ulValue. |
SRV_RPC_PROCNUMBER | ulValue | Sets the RPC procedure number value. |
SRV_RPC_PROCNUMBER | ulValue | Sets the RPC procedure line number value. |
SRV_RPC_OPTIONS | ulValue | Sets the RPC option flag. The option flag is 16 bits in size. Bit 0 is set if the RPC is being sent with the recompile option. Bit 1 is set if xp_cursor operations are not supposed to return metadata. Bits 2 through 15 are reserved and should be set to zero. |
SRV_RPC_NUMPARAMS | ulValue | Specifies how many RPC parameters are contained within this RPC. This value must be set before setting any parameter values. |
SRV_RPC_RPCPARAMS | ulValue pValue | Sets the RPC parameter value. The RPC parameter to set is specified in ulValue and the RPC parameter data is contained in the structure, pValue. The RPC parameter structure definition is defined in the structure, SRV_RPCp, which is defined in the Srvstruc.h header file. |