CTexasAPI::HasPermission
HasPermission is use to check the locally cached permissions list, the api will monitor for changes to this list in real-time.
bool HasPermission( unsigned int methodID );
Parameters
| methodID | The method ID to be tested. |
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.HasPermission(GET_ENTITY_DETILS)){
if(server.RemoteMethod(GET_ENTITY_DETAILS,1,0,0,callback,this,param))
MessageBox(TEXT("Unable to call remote method"));
}

