ServerHelperApi::CopyConfiguration(ServerHelperApi*,ClientUser*,Error*)
Copies server configuration information from a shared server in preparation for creating a matching personal server.
Virtual? |
No |
|
Class |
||
Arguments |
|
the shared server to copy settings from |
|
pointer to a |
|
|
pointer to an |
|
Returns |
|
Notes
This method gets the case sensitivity and Unicode settings from a shared
server. For a personal server to push and fetch against a shared server
it must have matching case sensitivity and Unicode settings. Call this
method prior to running InitLocalServer()
to ensure that the new personal server will work properly with the shared
server. This method can only be run if the personal server does not
exist. Use the Exists()
method to
test to see if the personal server already exists.
Example
// Discover the case sensitivity and unicode settings if( !personalServer.CopyConfiguration( ¢ralServer, &ui, &e ) ) return 1; // Create the local server if( personalServer.InitLocalServer( &ui, &e ) ) return 1;