AddProfile2

Top  Previous  Next

The AddProfile2 method adds a new profile

HRESULT AddProfile2(

[in] BSTR p_wsProfileName,

[in] BOOL p_bPublicProfile

);

 

Parameters:

p_wsProfileName

[in] pointer to a BSTR containing the name of the profile to add.

 

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_PROFILE_EXISTS - a profile with the same name already exists

NV_ENOUGH_PROFILES - too many profiles already, can not add more

 

Remarks:

The newly created profile contains default settings.