The GetFirstProfile2 starts an enumeration of profiles, retrieving the id of the first profile in the enumeration.
HRESULT GetFirstProfile2( [out] BSTR* p_pwsProfileId );
p_pwsProfileId [out] pointer to a pointer to a null terminated Unicode string containing the id of the first existing profile
S_OKon success or COM error code
NV_NOT_INITIALIZED- Initialize was not called
NV_SERVICE_ERROR- cannot connect to novaPDF Server service
NV_PROFILE_ERROR- cannot load profiles