Category Windchill servers, Object ProServer

Function ProServerAliasedURLToURL


Description
Converts an an aliased url (wtpub://alias/etc/p.prt) suitable for use in functions like ProMdlLoad to an unaliased URL (http://windchillserver.ptc.com/etc).
Replacement in Object TOOLKIT: pfcBaseSession::GetUrlFromAliasedUrl
Synopsis
#include <ProWTUtils.h>
ProErrorProServerAliasedURLToURL(
wchar_t* aliased_url
/* (In)
The aliased URL.
*/
wchar_t** url
/* (Out)
The unaliased URL. Free this string using ProWstringFree(). If the server is in offline mode url will be null string.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more inputs was invalid.
PRO_TK_E_NOT_FOUNDThe server listed in the given aliased URL is not registered in session.
PRO_TK_GENERAL_ERRORIf any other error occures.
PRO_TK_CANT_ACCESSIf the server is in offline mode.

Manual References:

  1. Data Management: Windchill Operations: Utility APIs