Category Windchill servers, Object ProServer

Function ProServerContextGet


Description
Gets the context to use for a given server.
Replacement in Object TOOLKIT: pfcServer::Context
Synopsis
#include <ProWTUtils.h>
ProErrorProServerContextGet(
wchar_t* alias
/* (In)
The name used by Creo Parametric to refer to this server.
*/
wchar_t** context
/* (Out)
The name of the context in use. 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_FOUNDThe server was not registered.
PRO_TK_GENERAL_ERRORIf any other error occurs.

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 ( PTWCServerUpdateDXF.c )