|
CopyProfile2 |
Top Previous Next |
|
The CopyProfile2 method copies an existing profile to a new profile. HRESULT CopyProfile2( [in] BSTR p_wsOldProfileName, [in] BSTR p_wsNewProfileName, [in] BOOL p_bPublicProfile );
Parameters: p_wsOldProfileName [in] pointer to a BSTR containing the name of the profile to copy. p_wsNewProfileName [in] pointer to a BSTR containing the name of the copy profile. p_bPublicProfile [in] Flag if the profile is a public or a private profile.
Return values: S_OK on success or COM error code NV_NOT_INITIALIZED - Initialize was not called NV_UNKNOWN_PROFILE - profile specified by p_wsOldProfileName does not exist NV_PROFILE_EXISTS - a profile with the name p_wsNewProfileName already exists NV_ENOUGH_PROFILES - too many profiles already, can not add more NV_PUBLIC_PROFILE - you cannot change public profiles only on server
|