AddProfile

Top  Previous  Next

The AddProfile method adds a new profile

HRESULT AddProfile(

[in] LPCWSTR p_wsProfileName,

[in] BOOL    p_bPublicProfile

);

 

Parameters:

p_wsProfileName

[in] pointer to a null terminated Unicode string 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.