The GetNextProfile2 continues an enumeration of profiles started with GetFirstProfile, retrieving the id of the next profile in the enumeration.
HRESULT GetNextProfile2( [out] BSTR* p_pwsProfileId );
p_pwsProfileId [out] pointer to a pointer to a null terminated Unicode string containing the name of the next existing profile.
S_OKon success or COM error code
NV_NOT_INITIALIZED- Initialize was not called
NV_ENUM_NOT_INIT- enumerate was not started, GetFirstProfile was not called before
NV_NO_MORE_PROFILES- there are no more profiles to enumerate