The CopyProfile method copies an existing profile to a new profile.
HRESULT CopyProfile(
[in, string] LPCWSTR p_wsNewProfileName,
[in] BOOL p_bPublicProfile,
[in, string] LPCWSTR p_wsOldProfileId,
[out] LPWSTR* p_pwsNewProfileId
);
Parameters:
p_wsNewProfileName
[in] name of the new profile
p_bPublicProfile
[in] Flag if the profile is a public or a private profile
p_wsOldProfileId
[in] id for the profile to be copied
p_pwsNewProfileId
[out] the new profile id
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_SERVICE_ERROR
- cannot connect to novaPDF Server serviceNV_PROFILE_ERROR
- cannot read default profileNV_PROFILE_SAVE_ERROR
- cannot save new profile