Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# ServerHelperApi::CopyConfiguration(ServerHelperApi*,ClientUser*,Error*)

Copies server configuration information from a shared server in preparation for creating a matching personal server.

Virtual? | No |
Class | `ServerHelperApi` |
Arguments | `ServerHelperApi* remote` | the shared server to copy settings from
| `ClientUser *ui` | pointer to a `ClientUser` object
| `Error *e` | pointer to an `Error` object
Returns | `int` |

## 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( &centralServer, &ui, &e ) )
        return 1;

    // Create the local server
    if( personalServer.InitLocalServer( &ui, &e ) )
        return 1;

Your search for returned results