Function ProServerRegister
Description
Registers a server in the session given its root location and an alias. NOTE: To automate registration of servers in interactive mode, use the standard config.fld setup to preregister the servers. To ensure that the servers are not preregistered when running Creo Parametric in batch non-graphics mode, set the environment variable PTC_WF_ROOT to an empty directory before starting Creo Parametric.
Replacement in Object TOOLKIT:
Synopsis
#include <ProWTUtils.h>
ProServerRegister
(
wchar_t* alias
/* (In)
The name used by Creo Parametric to refer to this server.
*/
wchar_t* location
/* (In)
The root location for the server.
*/
wchar_t* workspace
/* (In)
The name of the workspace to use.
*/
wchar_t** aliased_url
/* (Out)
Aliased url for the registered workspace. Free this string using ProWstringFree()
*/
)
Returns
The function succeeded.
One or more inputs was invalid.
A server with this alias or location/workspace is already registered.
The server couldn't be found at the given location.
Authentication failed.
The workspace couldn't be found or created.
There is no license to work with the server.
The server version is not supported.
If any other error occures.
Sample Code References
User Guide References
¿Fue esto útil?