GET_SERVERS commands
Content Manager OnDemand returns a list of the available servers.
Command | Parameters |
---|---|
GET_SERVERS | None |
- Parameters
- None
- Action
- None
- Return Code
-
- 0
ARS_DDE_RC_NO_ERROR
- 11
ARS_DDE_RC_USER_ACTION_IN_PROGRESS
- Return Data
- The list is a null-terminated character string with the tab character separating each server name.
Refer to the DoDdeCommand function.
char
data[1000], servers[10][100], * pToken;
int j;
if ( DoDdeCommand( "GET_SERVERS", "", data ) )
{
for ( pToken = strtok( data, "\t" ), j = 0;
pToken != NULL &&;amp; j < 10;
pToken = strtok( NULL, "\t" ), j++ )
{
strcpy( servers[j], pToken );
}
}