Category Windchill servers, Object ProServer

Function ProServerActiveGet


Description
Gets the primary sever
Replacement in Object TOOLKIT: pfcServer::IsActive
pfcBaseSession::GetActiveServer
Synopsis
#include <ProWTUtils.h>
ProErrorProServerActiveGet(
wchar_t** alias
/* (Out)
The name used by Creo Parametric to refer to this server. Free this string using ProWstringFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_E_NOT_FOUNDThere is no active aliased server (Local Dir is active).

Manual References:

  1. Data Management: Windchill Operations: Accessing Information From a Registered Server
  2. Data Management: Windchill Operations: Accessing Information From a Registered Server

Sample Code References:

  1. pt_wc_server ( PTWCServerAddInstance.c )
  2. pt_wc_server ( PTWCServerPartToPView.c )
  3. pt_wc_server ( PTWCServerUpdateDXF.c )
  4. pt_wc_server ( PTWCServerUtils.c )