共用方式為


3.1.4.22.6 CreateReplicationDir (Opnum 8)

This method is called by a replication client application to ensure that the server's base replication directory exists and to get its path.

 HRESULT CreateReplicationDir(
   [out] LPWSTR* ppwszBaseReplicationDir
 );

ppwszBaseReplicationDir: A pointer to a variable that, upon successful completion, MUST contain the server's base replication directory path.

Return Values: This method MUST return S_OK (0x00000000) on success, and a failure result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST be treated identically.

Upon receiving a call to this method, the server MUST verify that its base replication directory exists. If not, it MUST attempt to create this directory, and fail the call if it cannot.

The server then MUST set ppwszBaseReplicationDir to the path of this directory and return success.