Home Home

RemoteMethod

RemoteMethod call a method on the server and returns the results to the call back routine. The callback is always on a new thread that is terminated at the end of the callback.
unsigned int RemoteMethod(
   unsigned int methodID,
   int interfaceVersion,
   short methodOpt,
   short language,
   pCallbackRoutine callback,
   void* objectID,
   const void* BSTR = NULL
);
	

Parameters

methodID The method ID for the call.
interfaceVersion For the expect returning parameter schema.
methodOpt CTexasAPI::Mode
language Used for error messages from this method.
callback Used for the results.
objectID Returned to the callback routine.
BSTR Any parameters for this method.

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

Example Use

int param[] = {8,0};//will get current logon user's details
if(server.RemoteMethod(GET_ENTITY_DETAILS,1,0,0,callback,this,param))
   MessageBox("Unable to call remote method");

Also See

Download, Upload, InvalidateObject

Copyright © 2007, Ekky Software Pty Ltd.