4.5 Import Call Example

The client initiates a connection to the server through standard DCOM calls, as specified in [MS-DCOM].

The client calls the Import method and provides the following parameters:

  • A Unicode string that includes the terminating null character, which is used by the server as a password to decrypt any protected data (for example, "MyPassword").

  • A Unicode string that includes the terminating null character, which is used by the server as a path to an existing file containing the data to be imported (for example, "d:\\export\\exportedfile.xml").

  • A Unicode string that includes the terminating null character, which is used by the server as a configuration path within the file specified in the previous parameter (for example, "/LM/W3SVC/1/"). The server uses this configuration path to select the subtree from the configuration data stored in the file.

  • A Unicode string that includes the terminating null character, which is used by the server as a configuration path within the configuration store specified in the file (for example, "/LM/W3SVC/901/"). The server uses this path to locate the point to where the data will be imported.

  • A flag parameter used by the server to determine how to import the data (for example, MD_IMPORT_MERGE).

The client then checks the return code from the function to determine whether the import succeeded.