RenameProfile2

Top  Previous  Next

The RenameProfile2 method renames an existing profile.

HRESULT RenameProfile2(

[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 rename.

p_wsNewProfileName

[in] pointer to a BSTR containing the new name of the 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_PUBLIC_PROFILE - you cannot change public profiles only on server